diff --git a/pkgs/development/python-modules/beartype/default.nix b/pkgs/development/python-modules/beartype/default.nix new file mode 100644 index 000000000000..d77a4db3e331 --- /dev/null +++ b/pkgs/development/python-modules/beartype/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +}: + + +buildPythonPackage rec { + pname = "beartype"; + version = "0.9.1"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "YjYw3CQ7DaWoTw+kFOaqryYT5WetGav+aoHBfqWrYvE="; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c506c82337a9..b44d123bed28 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1166,6 +1166,8 @@ in { beanstalkc = callPackage ../development/python-modules/beanstalkc { }; + beartype = callPackage ../development/python-modules/beartype { }; + beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 { }; beautifultable = callPackage ../development/python-modules/beautifultable { };