diff options
Diffstat (limited to 'pkgs/development/python-modules/enhancements/default.nix')
-rw-r--r-- | pkgs/development/python-modules/enhancements/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/enhancements/default.nix b/pkgs/development/python-modules/enhancements/default.nix new file mode 100644 index 0000000000000..18fdfd29ce130 --- /dev/null +++ b/pkgs/development/python-modules/enhancements/default.nix @@ -0,0 +1,43 @@ +{ lib +, argcomplete +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, typeguard +}: + +buildPythonPackage rec { + pname = "enhancements"; + version = "0.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ssh-mitm"; + repo = "python-enhancements"; + rev = version; + hash = "sha256-Nff44WAQwSbkRpUHb9ANsQWWH2B819gtwQdXAjWJJls="; + }; + + propagatedBuildInputs = [ + argcomplete + typeguard + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "enhancements" + ]; + + meta = with lib; { + description = "Library which extends various Python classes"; + homepage = "https://enhancements.readthedocs.io"; + license = licenses.lgpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} |