about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/munch/default.nix
blob: 368cc0eff5adafd1118fc348688314eb0f15428d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, pbr
, setuptools

# tests
, pytestCheckHook
, pyyaml
}:

buildPythonPackage rec {
  pname = "munch";
  version = "4.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Infinidat";
    repo = "munch";
    rev = "refs/tags/${version}";
    hash = "sha256-p7DvOGRhkCmtJ32EfttyKXGGmO5kfb2bQGqok/RJtU8=";
  };

  env.PBR_VERSION = version;

  nativeBuildInputs = [
    pbr
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pyyaml
  ];

  meta = with lib; {
    description = "A dot-accessible dictionary (a la JavaScript objects)";
    license = licenses.mit;
    homepage = "https://github.com/Infinidat/munch";
  };

}