1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 23:02:38 +03:00
nixpkgs/pkgs/development/python-modules/mypy/extensions.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
796 B
Nix
Raw Normal View History

2022-06-04 18:27:26 +02:00
{ lib
, fetchFromGitHub
, buildPythonPackage
, typing
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "mypy-extensions";
version = "0.4.3";
2022-06-04 18:27:26 +02:00
src = fetchFromGitHub {
owner = "python";
repo = "mypy_extensions";
rev = version;
sha256 = "sha256-JjhbxX5DBAbcs1o2fSWywz9tot792q491POXiId+NyI=";
};
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
2022-06-04 18:27:26 +02:00
checkPhase = ''
${python.interpreter} -m unittest discover tests
'';
pythonImportsCheck = [ "mypy_extensions" ];
meta = with 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 SuperSandro2000 ];
};
}