2018-10-07 22:54:34 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
|
2018-09-17 16:30:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-24 08:56:26 +01:00
|
|
|
pname = "mypy-extensions";
|
2019-10-24 07:47:39 +01:00
|
|
|
version = "0.4.3";
|
2018-09-17 16:30:25 +01:00
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2019-10-24 08:56:26 +01:00
|
|
|
inherit version;
|
|
|
|
pname = "mypy_extensions";
|
2019-10-24 07:47:39 +01:00
|
|
|
sha256 = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|