2018-10-07 22:54:34 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
|
2018-09-17 16:30:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mypy_extensions";
|
2019-10-16 10:43:10 +01:00
|
|
|
version = "0.4.2";
|
2018-09-17 16:30:25 +01:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:10 +01:00
|
|
|
sha256 = "a161e3b917053de87dbe469987e173e49fb454eca10ef28b48b384538cc11458";
|
2018-09-17 16:30:25 +01:00
|
|
|
};
|
|
|
|
|
2018-10-07 22:54:34 +01:00
|
|
|
propagatedBuildInputs = if pythonOlder "3.5" then [ typing ] else [ ];
|
2018-09-17 16:30:25 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
|
|
|
homepage = "http://www.mypy-lang.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ martingms lnl7 ];
|
|
|
|
};
|
|
|
|
}
|