summary refs log tree commit diff
path: root/pkgs/development/python-modules/typeguard
diff options
context:
space:
mode:
authorobadz <obadz-git@obadz.com>2017-04-21 21:20:49 +0100
committerGitHub <noreply@github.com>2017-04-21 21:20:49 +0100
commitdbb06ea3d217d55fb304e3e69b60bae0fc1ce00a (patch)
tree801461e95c48608f6d93cb8065175566be635c4b /pkgs/development/python-modules/typeguard
parentc6b3c66277ff97d77d51c3a822458f19982b922a (diff)
downloadnixlib-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)
Diffstat (limited to 'pkgs/development/python-modules/typeguard')
-rw-r--r--pkgs/development/python-modules/typeguard/default.nix38
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 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;
+  };
+}