git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.typeguard: init at 2.3.1 (#25040)
commitdbb06ea3d217d55fb304e3e69b60bae0fc1ce00a authorobadz <obadz-git@obadz.com> dateFri 21 Apr 2017, 21:20 (10 years ago) parentc6b3c66
2 files changed+40−1
pkgs/development/python-modules/typeguard/default.nix+38 pkgs/top-level/python-packages.nix+2−1
pkgs/development/python-modules/typeguard/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ buildPythonPackage
2+, fetchPypi
3+, pythonOlder
4+, stdenv
5+, setuptools_scm
6+, pytest
7+}:
8+
9+buildPythonPackage rec {
10+ name = "${pname}-${version}";
11+ pname = "typeguard";
12+ version = "2.1.3";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "0l3pih5ca469v7if255h5rqymirsw46bi6s7p885jxhq1gv6cfpk";
17+ };
18+
19+ buildInputs = [ setuptools_scm ];
20+
21+ postPatch = ''
22+ substituteInPlace setup.cfg --replace " --cov" ""
23+ '';
24+
25+ checkInputs = [ pytest ];
26+
27+ checkPhase = ''
28+ py.test .
29+ '';
30+
31+ disabled = pythonOlder "3.3";
32+
33+ meta = with stdenv.lib; {
34+ description = "This library provides run-time type checking for functions defined with argument type annotations";
35+ homepage = "https://github.com/agronholm/typeguard";
36+ license = licenses.mit;
37+ };
38+}
pkgs/top-level/python-packages.nix+2−1
@@ -23151,6 +23151,8 @@ in {
2315123151 };
2315223152 };
2315323153
23154+ typeguard = callPackage ../development/python-modules/typeguard { };
23155+
2315423156 ruamel_yaml = buildPythonPackage rec {
2315523157 name = "ruamel.yaml-${version}";
2315623158 version = "0.13.7";
@@ -23178,7 +23180,6 @@ in {
2317823180 runsnakerun = buildPythonPackage rec {
2317923181 name = "runsnakerun-2.0.4";
2318023182
23181−
2318223183 src = pkgs.fetchurl {
2318323184 url = "mirror://pypi/R/RunSnakeRun/RunSnakeRun-2.0.4.tar.gz";
2318423185 sha256 = "61d03a13f1dcb3c1829f5a146da1fe0cc0e27947558a51e848b6d469902815ef";