pythonPackages.parse-type: init at 0.3.4
This commit is contained in:
parent
f06d7bd125
commit
83dbb41aed
38
pkgs/development/python-modules/parse-type/default.nix
Normal file
38
pkgs/development/python-modules/parse-type/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ stdenv, fetchPypi, fetchpatch
|
||||||
|
, buildPythonPackage, pythonOlder
|
||||||
|
, pytest, pytestrunner
|
||||||
|
, parse, six, enum34
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "parse-type";
|
||||||
|
version = "0.3.4";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit version;
|
||||||
|
pname = "parse_type";
|
||||||
|
sha256 = "3dd0b323bafcb8c25e000ce5589042a1c99cba9c3bec77b9f591e46bc9606147";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "python-3.5-tests-compat.patch";
|
||||||
|
url = "https://github.com/jenisys/parse_type/pull/4.patch";
|
||||||
|
sha256 = "1mmn2fxss6q3qhaydd4s4v8vjgvgkg41v1vcivrzdsvgsc3npg7m";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytest pytestrunner ];
|
||||||
|
propagatedBuildInputs = [ parse six ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/jenisys/parse_type;
|
||||||
|
description = "Simplifies to build parse types based on the parse module";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ alunduil ];
|
||||||
|
};
|
||||||
|
}
|
@ -27578,6 +27578,8 @@ EOF
|
|||||||
pyhamcrest = callPackage ../development/python-modules/pyhamcrest { };
|
pyhamcrest = callPackage ../development/python-modules/pyhamcrest { };
|
||||||
|
|
||||||
parse = callPackage ../development/python-modules/parse { };
|
parse = callPackage ../development/python-modules/parse { };
|
||||||
|
|
||||||
|
parse-type = callPackage ../development/python-modules/parse-type { };
|
||||||
});
|
});
|
||||||
|
|
||||||
in fix' (extends overrides packages)
|
in fix' (extends overrides packages)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user