diff options
author | obadz <obadz-git@obadz.com> | 2017-04-21 21:20:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-21 21:20:49 +0100 |
commit | dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a (patch) | |
tree | 801461e95c48608f6d93cb8065175566be635c4b /pkgs/development/python-modules/typeguard | |
parent | c6b3c66277ff97d77d51c3a822458f19982b922a (diff) |
pythonPackages.typeguard: init at 2.3.1 (#25040)
Diffstat (limited to 'pkgs/development/python-modules/typeguard')
-rw-r--r-- | pkgs/development/python-modules/typeguard/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/typeguard/default.nix b/pkgs/development/python-modules/typeguard/default.nix new file mode 100644 index 0000000000000..c099aba5b7af0 --- /dev/null +++ b/pkgs/development/python-modules/typeguard/default.nix @@ -0,0 +1,38 @@ +{ buildPythonPackage +, fetchPypi +, pythonOlder +, stdenv +, setuptools_scm +, pytest +}: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "typeguard"; + version = "2.1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "0l3pih5ca469v7if255h5rqymirsw46bi6s7p885jxhq1gv6cfpk"; + }; + + buildInputs = [ setuptools_scm ]; + + postPatch = '' + substituteInPlace setup.cfg --replace " --cov" "" + ''; + + checkInputs = [ pytest ]; + + checkPhase = '' + py.test . + ''; + + disabled = pythonOlder "3.3"; + + meta = with stdenv.lib; { + description = "This library provides run-time type checking for functions defined with argument type annotations"; + homepage = "https://github.com/agronholm/typeguard"; + license = licenses.mit; + }; +} |