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