2018-10-07 23:54:34 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
|
2018-09-17 17:30:25 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mypy_extensions";
|
|
|
|
version = "0.4.1";
|
|
|
|
|
|
|
|
# Tests not included in pip package.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p";
|
|
|
|
};
|
|
|
|
|
2018-10-07 23:54:34 +02:00
|
|
|
propagatedBuildInputs = if pythonOlder "3.5" then [ typing ] else [ ];
|
2018-09-17 17:30:25 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|