Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "constantdict";
version = "2025.3";
pyproject = true;
src = fetchFromGitHub {
owner = "matthiasdiener";
repo = "constantdict";
tag = "v${version}";
hash = "sha256-jX6g9xBteZOc/7Ob5N8eUSCycb6JoE5i38T52zknOTI=";
};
build-system = [
hatchling
];
pythonImportsCheck = [
"constantdict"
];
# Assumes that unpickling a pickled dict in a different Python process will result in a different hash.
# This doesn't seem to work in the Nix sandbox but works fine in a normal environment.
disabledTests = [
"test_pickle_hash"
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://matthiasdiener.github.io/constantdict";
downloadPage = "https://github.com/matthiasdiener/constantdict";
description = "Immutable dictionary class for Python, implemented as a thin layer around Python's builtin dict class";
changelog = "https://github.com/matthiasdiener/constantdict/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qbisi ];
};
}