1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 pytestCheckHook,
6}:
7
8buildPythonPackage {
9 pname = "trampoline";
10 version = "0.1.2";
11 format = "setuptools";
12
13 # only wheel on pypi, no tags on git
14 src = fetchFromGitLab {
15 owner = "ferreum";
16 repo = "trampoline";
17 rev = "1d98f39c3015594e2ac8ed48dccc2f393b4dd82b";
18 hash = "sha256-A/tuR+QW9sKh76Qjwn1uQxlVJgWrSFzXeBRDdnSi2o4=";
19 };
20
21 pythonImportsCheck = [ "trampoline" ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 meta = with lib; {
26 description = "Simple and tiny yield-based trampoline implementation for python";
27 homepage = "https://gitlab.com/ferreum/trampoline";
28 license = licenses.mit;
29 teams = [ teams.tts ];
30 };
31}