1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 pbr,
8 setuptools,
9
10 # tests
11 pytestCheckHook,
12 pyyaml,
13}:
14
15buildPythonPackage rec {
16 pname = "munch";
17 version = "4.0.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "Infinidat";
22 repo = "munch";
23 rev = "refs/tags/${version}";
24 hash = "sha256-p7DvOGRhkCmtJ32EfttyKXGGmO5kfb2bQGqok/RJtU8=";
25 };
26
27 env.PBR_VERSION = version;
28
29 nativeBuildInputs = [
30 pbr
31 setuptools
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 pyyaml
37 ];
38
39 meta = with lib; {
40 description = "Dot-accessible dictionary (a la JavaScript objects)";
41 license = licenses.mit;
42 homepage = "https://github.com/Infinidat/munch";
43 };
44}