diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-03 07:42:56 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-03 07:49:18 -0700 |
commit | 9058cdef7d8435fd92fbee5990eaf11fe26dfc26 (patch) | |
tree | 4317eca74180eb2539d4ed8c61e29c0cf84b0df2 /pkgs/development/python2-modules/backports-functools-lru-cache | |
parent | d85f641287e4f632e9ee3708f0af6d8a41380e36 (diff) | |
download | nixlib-9058cdef7d8435fd92fbee5990eaf11fe26dfc26.tar nixlib-9058cdef7d8435fd92fbee5990eaf11fe26dfc26.tar.gz nixlib-9058cdef7d8435fd92fbee5990eaf11fe26dfc26.tar.bz2 nixlib-9058cdef7d8435fd92fbee5990eaf11fe26dfc26.tar.lz nixlib-9058cdef7d8435fd92fbee5990eaf11fe26dfc26.tar.xz nixlib-9058cdef7d8435fd92fbee5990eaf11fe26dfc26.tar.zst nixlib-9058cdef7d8435fd92fbee5990eaf11fe26dfc26.zip |
python2.pkgs.backports-functools-lru-cache: init at 1.6.6
Diffstat (limited to 'pkgs/development/python2-modules/backports-functools-lru-cache')
-rw-r--r-- | pkgs/development/python2-modules/backports-functools-lru-cache/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python2-modules/backports-functools-lru-cache/default.nix b/pkgs/development/python2-modules/backports-functools-lru-cache/default.nix new file mode 100644 index 000000000000..859bb6b8d91a --- /dev/null +++ b/pkgs/development/python2-modules/backports-functools-lru-cache/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "backports-functools-lru-cache"; + version = "1.6.6"; + format = "pyproject"; + + src = fetchPypi { + pname = "backports.functools_lru_cache"; + inherit version; + hash = "sha256-e3DnAbpNtYwO2GcanTORsKu5vRvCTU6Qw0gPS6r8wtw="; + }; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + + # circular dependency: + # backports-functools-lru-cache -> pytest -> wc-width -> backports-functools-lru-cache + doCheck = false; + + pythonImportsCheck = [ + "backports.functools_lru_cache" + ]; + + meta = { + description = "Backport of functools.lru_cache"; + homepage = "https://github.com/jaraco/backports.functools_lru_cache"; + license = lib.licenses.mit; + }; +} + |