diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/dictpath/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/dictpath/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/dictpath/default.nix b/nixpkgs/pkgs/development/python-modules/dictpath/default.nix new file mode 100644 index 000000000000..2809d859589e --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/dictpath/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "dictpath"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "p1c2u"; + repo = "dictpath"; + rev = version; + sha256 = "0314i8wky2z83a66zggc53m8qa1rjgkrznrl2ixsgiq0prcn6v16"; + }; + + postPatch = '' + sed -i "/^addopts/d" setup.cfg + ''; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "dictpath" ]; + + meta = with lib; { + description = "Object-oriented dictionary paths"; + homepage = "https://github.com/p1c2u/dictpath"; + license = licenses.asl20; + maintainers = with maintainers; [ dotlambda ]; + }; +} |