nixpkgs/pkgs/development/python-modules/frozendict/default.nix
2021-09-05 14:58:59 +02:00

52 lines
993 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytestCheckHook
, setuptoolsBuildHook
, python
}:
buildPythonPackage rec {
pname = "frozendict";
version = "2.0.5"; # 2.0.6 breaks canonicaljson
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-wb7hwHDY2fZA4SjluHV2pEAAhgCfeGLRPAv4YA5iE9M=";
};
pythonImportsCheck = [
"frozendict"
];
checkInputs = [
pytestCheckHook
];
preCheck = ''
rm -r frozendict
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
disabledTests = [
# TypeError: unsupported operand type(s) for |=: 'frozendict.frozendict' and 'dict'
"test_union"
];
disabledTestPaths = [
# unpackaged test dependency: coold
"test/test_coold.py"
"test/test_coold_subclass.py"
];
meta = with lib; {
homepage = "https://github.com/slezica/python-frozendict";
description = "An immutable dictionary";
license = licenses.mit;
};
}