depot/third_party/nixpkgs/pkgs/development/python-modules/mypy/extensions.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

34 lines
806 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, typing
, unittestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "mypy-extensions";
version = "0.4.3";
src = fetchFromGitHub {
owner = "python";
repo = "mypy_extensions";
rev = version;
sha256 = "sha256-JjhbxX5DBAbcs1o2fSWywz9tot792q491POXiId+NyI=";
};
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
checkInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "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 ];
};
}