2021-08-09 15:38:54 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
2022-10-28 20:54:46 +01:00
|
|
|
, pythonOlder
|
2021-08-09 15:38:54 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "immutabledict";
|
2022-12-18 20:15:34 +00:00
|
|
|
version = "2.2.3";
|
2021-08-09 15:38:54 +01:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-10-28 20:54:46 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-08-09 15:38:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "corenting";
|
|
|
|
repo = "immutabledict";
|
|
|
|
rev = "v${version}";
|
2022-12-18 20:15:34 +00:00
|
|
|
hash = "sha256-GeQ1BEBt+66YhohyaXt7rIVNpEk6mINwsC3JrmYNjRI=";
|
2021-08-09 15:38:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"immutabledict"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A fork of frozendict, an immutable wrapper around dictionaries";
|
|
|
|
homepage = "https://github.com/corenting/immutabledict";
|
2022-12-18 20:14:54 +00:00
|
|
|
changelog = "https://github.com/corenting/immutabledict/blob/v${version}/CHANGELOG.md";
|
2021-08-09 15:38:54 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|