1{ stdenv, fetchPypi, buildPythonPackage, typing, pythonOlder }:
2
3buildPythonPackage rec {
4 pname = "mypy_extensions";
5 version = "0.4.1";
6
7 # Tests not included in pip package.
8 doCheck = false;
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "04h8brrbbx151dfa2cvvlnxgmb5wa00mhd2z7nd20s8kyibfkq1p";
13 };
14
15 propagatedBuildInputs = if pythonOlder "3.5" then [ typing ] else [ ];
16
17 meta = with stdenv.lib; {
18 description = "Experimental type system extensions for programs checked with the mypy typechecker";
19 homepage = "http://www.mypy-lang.org";
20 license = licenses.mit;
21 maintainers = with maintainers; [ martingms lnl7 ];
22 };
23}