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