diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/munch/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/munch/default.nix | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/munch/default.nix b/nixpkgs/pkgs/development/python-modules/munch/default.nix index b754514649a2..368cc0eff5ad 100644 --- a/nixpkgs/pkgs/development/python-modules/munch/default.nix +++ b/nixpkgs/pkgs/development/python-modules/munch/default.nix @@ -1,24 +1,39 @@ { lib , buildPythonPackage -, fetchPypi -, six +, fetchFromGitHub + +# build-system , pbr +, setuptools + +# tests +, pytestCheckHook +, pyyaml }: buildPythonPackage rec { pname = "munch"; version = "4.0.0"; - format = "setuptools"; + pyproject = true; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-VCyxUUYSYyFqTjfD/Zr8Ql/urziqowJc0qmB+ttCIjU="; + src = fetchFromGitHub { + owner = "Infinidat"; + repo = "munch"; + rev = "refs/tags/${version}"; + hash = "sha256-p7DvOGRhkCmtJ32EfttyKXGGmO5kfb2bQGqok/RJtU8="; }; - propagatedBuildInputs = [ six pbr ]; + env.PBR_VERSION = version; + + nativeBuildInputs = [ + pbr + setuptools + ]; - # No tests in archive - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + pyyaml + ]; meta = with lib; { description = "A dot-accessible dictionary (a la JavaScript objects)"; |