2022-06-04 18:27:26 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, typing
|
|
|
|
, python
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2018-09-18 00:30:25 +09:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-24 09:56:26 +02:00
|
|
|
pname = "mypy-extensions";
|
2019-10-24 08:47:39 +02:00
|
|
|
version = "0.4.3";
|
2018-09-18 00:30:25 +09:00
|
|
|
|
2022-06-04 18:27:26 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python";
|
|
|
|
repo = "mypy_extensions";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-JjhbxX5DBAbcs1o2fSWywz9tot792q491POXiId+NyI=";
|
2018-09-18 00:30:25 +09:00
|
|
|
};
|
|
|
|
|
2021-11-15 00:35:59 +01:00
|
|
|
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
|
2018-09-18 00:30:25 +09:00
|
|
|
|
2022-06-04 18:27:26 +02:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mypy_extensions" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-09-18 00:30:25 +09:00
|
|
|
description = "Experimental type system extensions for programs checked with the mypy typechecker";
|
2021-11-15 00:35:59 +01:00
|
|
|
homepage = "http://www.mypy-lang.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ martingms lnl7 SuperSandro2000 ];
|
2018-09-18 00:30:25 +09:00
|
|
|
};
|
|
|
|
}
|