1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, pytestCheckHook
6, python
7}:
8
9buildPythonPackage rec {
10 pname = "frozendict";
11 version = "2.0.7"; # 2.0.6 breaks canonicaljson
12 format = "setuptools";
13
14 disabled = !isPy3k;
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "a68f609d1af67da80b45519fdcfca2d60249c0a8c96e68279c1b6ddd92128204";
19 };
20
21 pythonImportsCheck = [
22 "frozendict"
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 preCheck = ''
30 rm -r frozendict
31 export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
32 '';
33
34 disabledTests = [
35 # TypeError: unsupported operand type(s) for |=: 'frozendict.frozendict' and 'dict'
36 "test_union"
37 ];
38
39 disabledTestPaths = [
40 # unpackaged test dependency: coold
41 "test/test_coold.py"
42 "test/test_coold_subclass.py"
43 ];
44
45 meta = with lib; {
46 homepage = "https://github.com/slezica/python-frozendict";
47 description = "An immutable dictionary";
48 license = licenses.mit;
49 };
50}