diff options
Diffstat (limited to 'pkgs/development/python-modules/prodict/default.nix')
-rw-r--r-- | pkgs/development/python-modules/prodict/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/prodict/default.nix b/pkgs/development/python-modules/prodict/default.nix new file mode 100644 index 0000000000000..a6fdc61658dd9 --- /dev/null +++ b/pkgs/development/python-modules/prodict/default.nix @@ -0,0 +1,35 @@ +{ buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytestCheckHook +, lib +}: + +buildPythonPackage rec { + pname = "prodict"; + version = "0.8.6"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ramazanpolat"; + repo = pname; + rev = version; + hash = "sha256-c46JEQFg4KRwerqpMSgh6+tYRpKTOX02Lzsq4/meS3o="; + }; + + # make setuptools happy on case-sensitive filesystems + postPatch = ''if [[ ! -f README.md ]]; then mv README.MD README.md; fi''; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "prodict" ]; + + meta = { + description = "Access Python dictionary as a class with type hinting and autocompletion"; + homepage = "https://github.com/ramazanpolat/prodict"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ bcdarwin ]; + }; +} |