2021-08-25 08:27:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
2022-10-30 15:09:59 +00:00
|
|
|
, pythonOlder
|
2021-08-25 08:27:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "immutabledict";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "2.2.3";
|
2021-08-25 08:27:29 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "corenting";
|
|
|
|
repo = "immutabledict";
|
|
|
|
rev = "v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-GeQ1BEBt+66YhohyaXt7rIVNpEk6mINwsC3JrmYNjRI=";
|
2021-08-25 08:27:29 +00: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-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/corenting/immutabledict/blob/v${version}/CHANGELOG.md";
|
2021-08-25 08:27:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|