nixpkgs/pkgs/development/python-modules/trampoline/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

31 lines
713 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
pytestCheckHook,
}:
buildPythonPackage {
pname = "trampoline";
version = "0.1.2";
format = "setuptools";
# only wheel on pypi, no tags on git
src = fetchFromGitLab {
owner = "ferreum";
repo = "trampoline";
rev = "1d98f39c3015594e2ac8ed48dccc2f393b4dd82b";
hash = "sha256-A/tuR+QW9sKh76Qjwn1uQxlVJgWrSFzXeBRDdnSi2o4=";
};
pythonImportsCheck = [ "trampoline" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Simple and tiny yield-based trampoline implementation for python";
homepage = "https://gitlab.com/ferreum/trampoline";
license = lib.licenses.mit;
teams = [ lib.teams.tts ];
};
}