2017-04-21 23:20:49 +03:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, stdenv
|
|
|
|
, setuptools_scm
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "typeguard";
|
2018-01-07 11:01:43 +03:00
|
|
|
version = "2.1.4";
|
2017-04-21 23:20:49 +03:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-07 11:01:43 +03:00
|
|
|
sha256 = "40b22d18d2215b76b3ddda2564acfbddfa6e702968637fbd969187c2a6fb99da";
|
2017-04-21 23:20:49 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = https://github.com/agronholm/typeguard;
|
2017-04-21 23:20:49 +03:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|