From dd986a65f6a214f949dc278dd4e1d1266cfc5793 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 6 Apr 2022 18:53:36 +0200 Subject: [PATCH] python3Packages.lru-dict: init at 1.1.7 --- .../python-modules/lru-dict/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/lru-dict/default.nix diff --git a/pkgs/development/python-modules/lru-dict/default.nix b/pkgs/development/python-modules/lru-dict/default.nix new file mode 100644 index 000000000000..b075ead34297 --- /dev/null +++ b/pkgs/development/python-modules/lru-dict/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +}: + +let + pname = "lru-dict"; + version = "1.1.7"; +in +buildPythonPackage { + inherit pname version; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-RbgfZ9dTQdRDOrreeZpH6cQqniKhGFMdy15UmGQDLXw="; + }; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "lru" + ]; + + meta = with lib; { + description = "Fast and memory efficient LRU cache for Python"; + homepage = "https://github.com/amitdev/lru-dict"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b908f6888290..6ab71fd1e11d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4883,6 +4883,8 @@ in { losant-rest = callPackage ../development/python-modules/losant-rest { }; + lru-dict = callPackage ../development/python-modules/lru-dict { }; + lsassy = callPackage ../development/python-modules/lsassy { }; luddite = callPackage ../development/python-modules/luddite { };