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";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "2.2.4";
|
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}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-cykTZw3p6P35rHaJmfmiXIqybc+ZeqUkxneoPot7E9Q=";
|
2021-08-25 08:27:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"immutabledict"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-25 08:27:29 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|