Files
nixpkgs/pkgs/development/python-modules/expiring-dict/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

33 lines
648 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
sortedcontainers,
}:
buildPythonPackage rec {
pname = "expiring-dict";
version = "1.1.2";
pyproject = true;
src = fetchPypi {
pname = "expiring_dict";
inherit version;
hash = "sha256-yoy4AjBOrlszoj7EwZAZthCt/aUMvEyb+jrVws04djE=";
};
build-system = [ setuptools ];
dependencies = [ sortedcontainers ];
pythonImportsCheck = [ "expiring_dict" ];
meta = {
description = "Python dict with TTL support for auto-expiring caches";
homepage = "https://github.com/dparker2/py-expiring-dict";
license = lib.licenses.mit;
maintainers = [ ];
};
}