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 | |
parent | c6b3c66277ff97d77d51c3a822458f19982b922a (diff) | |
download | nixlib-dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a.tar nixlib-dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a.tar.gz nixlib-dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a.tar.bz2 nixlib-dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a.tar.lz nixlib-dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a.tar.xz nixlib-dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a.tar.zst nixlib-dbb06ea3d217d55fb304e3e69b60bae0fc1ce00a.zip |
pythonPackages.typeguard: init at 2.3.1 (#25040)
-rw-r--r-- | pkgs/development/python-modules/typeguard/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 3 |
2 files changed, 40 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/typeguard/default.nix b/pkgs/development/python-modules/typeguard/default.nix new file mode 100644 index 000000000000..c099aba5b7af --- /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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5bde08d5c12a..e2a615e7a0fb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -23151,6 +23151,8 @@ in { }; }; + typeguard = callPackage ../development/python-modules/typeguard { }; + ruamel_yaml = buildPythonPackage rec { name = "ruamel.yaml-${version}"; version = "0.13.7"; @@ -23178,7 +23180,6 @@ in { runsnakerun = buildPythonPackage rec { name = "runsnakerun-2.0.4"; - src = pkgs.fetchurl { url = "mirror://pypi/R/RunSnakeRun/RunSnakeRun-2.0.4.tar.gz"; sha256 = "61d03a13f1dcb3c1829f5a146da1fe0cc0e27947558a51e848b6d469902815ef"; |