depot/third_party/nixpkgs/pkgs/development/python-modules/immutabledict/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

42 lines
888 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "immutabledict";
version = "2.2.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "corenting";
repo = "immutabledict";
rev = "v${version}";
hash = "sha256-7b/iSFQ4817XmDA40cQ/iqEuUegeg8Cypl85ntux6CI=";
};
nativeBuildInputs = [
poetry-core
];
pythonImportsCheck = [
"immutabledict"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "A fork of frozendict, an immutable wrapper around dictionaries";
homepage = "https://github.com/corenting/immutabledict";
changelog = "https://github.com/corenting/immutabledict/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}