depot/third_party/nixpkgs/pkgs/development/python-modules/frozendict/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

42 lines
646 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytestCheckHook
, python
}:
buildPythonPackage rec {
pname = "frozendict";
version = "2.2.0";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-jj1HNfmhPRB3Vn5WhHFmPzJE+FrImyP4yzHPIx2+Rbk=";
};
pythonImportsCheck = [
"frozendict"
];
checkInputs = [
pytestCheckHook
];
preCheck = ''
pushd test
'';
postCheck = ''
popd
'';
meta = with lib; {
homepage = "https://github.com/slezica/python-frozendict";
description = "An immutable dictionary";
license = licenses.mit;
};
}