depot/third_party/nixpkgs/pkgs/development/python-modules/frozendict/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

41 lines
666 B
Nix

{ 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;
};
}