summary refs log tree commit diff
path: root/pkgs/development/python-modules/frozendict/default.nix
blob: 6b47dc77c1677be68cc8b95a2cbc587800a25697 (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
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "frozendict";
  version = "2.3.4";
  format = "setuptools";

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "15b4b18346259392b0d27598f240e9390fafbff882137a9c48a1e0104fb17f78";
  };

  pythonImportsCheck = [
    "frozendict"
  ];

  checkInputs = [
    pytestCheckHook
  ];

  preCheck = ''
    pushd test
  '';

  postCheck = ''
    popd
  '';

  meta = with lib; {
    homepage = "https://github.com/Marco-Sulla/python-frozendict";
    description = "A simple immutable dictionary";
    license = licenses.lgpl3Only;
  };
}