nixpkgs/pkgs/development/python-modules/beartype/default.nix
2022-03-19 01:23:28 +00:00

35 lines
632 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "beartype";
version = "0.10.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-JOxp9qf05ul69APQjeJw3vMkhRgGAycJXSOxxN9kvyo=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"beartype"
];
meta = with lib; {
description = "Fast runtime type checking for Python";
homepage = "https://github.com/beartype/beartype";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}