pythonPackages.gentools: init at 1.1.0
This commit is contained in:
parent
d9d8bcbb99
commit
7fbc7acb2b
2 changed files with 33 additions and 0 deletions
31
pkgs/development/python-modules/gentools/default.nix
Normal file
31
pkgs/development/python-modules/gentools/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ buildPythonPackage, lib, fetchFromGitHub, pytest
|
||||
, typing, funcsigs, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gentools";
|
||||
version = "1.1.0";
|
||||
|
||||
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
||||
src = fetchFromGitHub {
|
||||
owner = "ariebovenberg";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1sm6cqi7fv2k3pc68r7wvvjjz8y6cjmz8bvxgqfa4v4wxibwnwrl";
|
||||
};
|
||||
|
||||
propagatedBuildInputs =
|
||||
lib.optionals (pythonOlder "3.5") [ typing ] ++
|
||||
lib.optionals (pythonOlder "3.4") [ funcsigs ];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = "pytest";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tools for generators, generator functions, and generator-based coroutines";
|
||||
license = licenses.mit;
|
||||
homepage = http://gentools.readthedocs.io/;
|
||||
maintainers = with maintainers; [ mredaelli ];
|
||||
};
|
||||
|
||||
}
|
|
@ -2417,6 +2417,8 @@ in {
|
|||
|
||||
genshi = callPackage ../development/python-modules/genshi { };
|
||||
|
||||
gentools = callPackage ../development/python-modules/gentools { };
|
||||
|
||||
gevent = callPackage ../development/python-modules/gevent { };
|
||||
|
||||
geventhttpclient = callPackage ../development/python-modules/geventhttpclient { };
|
||||
|
|
Loading…
Reference in a new issue