push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
dill,
mock,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "expiringdict";
version = "1.2.2";
pyproject = true;
# use fetchFromGitHub instead of fetchPypi because the test suite of
# the package is not included into the PyPI tarball
src = fetchFromGitHub {
owner = "mailgun";
repo = "expiringdict";
tag = "v${version}";
hash = "sha256-vRhJSHIqc51I+s/wndtfANM44CKW3QS1iajqyoSBf0I=";
};
patches = [
# apply mailgun/expiringdict#49 to address NixOS/nixpkgs#326513
(fetchpatch2 {
url = "https://github.com/mailgun/expiringdict/commit/1c0f82232d20f8b3b31c9269a4d0e9510c1721a6.patch";
hash = "sha256-IeeJVb2tOwRhEPNGqM30fNZyz3jFcnZNWC3I6K1+hSY=";
})
# apply mailgun/expiringdict#56 for compatibility with Python 3.12
(fetchpatch2 {
url = "https://github.com/mailgun/expiringdict/commit/976faf3664d54049e443aca054f5819db834577b.patch";
hash = "sha256-FNdnU6iUMyED5j8oAjhmJTR7zQeEc/Z5s64pdeT4F8w=";
})
];
build-system = [ setuptools ];
nativeCheckInputs = [
dill
mock
pytestCheckHook
];
pythonImportsCheck = [ "expiringdict" ];
meta = with lib; {
changelog = "https://github.com/mailgun/expiringdict/blob/${src.rev}/CHANGELOG.rst";
description = "Dictionary with auto-expiring values for caching purposes";
homepage = "https://github.com/mailgun/expiringdict";
license = licenses.asl20;
maintainers = with maintainers; [ gravndal ];
};
}