python.pkgs.pylru: move to a separate file

This commit is contained in:
Nikolay Amiantov 2018-02-25 20:26:54 +03:00
parent 1f9a7ec651
commit 67487427e9
2 changed files with 19 additions and 17 deletions

View File

@ -0,0 +1,18 @@
{ lib, buildPythonPackage, fetchurl }:
buildPythonPackage rec {
name = "pylru-${version}";
version = "1.0.9";
src = fetchurl {
url = "mirror://pypi/p/pylru/${name}.tar.gz";
sha256 = "0b0pq0l7xv83dfsajsc49jcxzc99kb9jfx1a1dlx22hzcy962dvi";
};
meta = with lib; {
homepage = https://github.com/jlhutch/pylru;
description = "A least recently used (LRU) cache implementation";
license = licenses.gpl2;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@ -9255,23 +9255,7 @@ in {
pylast = callPackage ../development/python-modules/pylast/default.nix { };
pylru = buildPythonPackage rec {
name = "pylru-${version}";
version = "1.0.9";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pylru/${name}.tar.gz";
sha256 = "0b0pq0l7xv83dfsajsc49jcxzc99kb9jfx1a1dlx22hzcy962dvi";
};
meta = {
homepage = "https://github.com/jlhutch/pylru";
description = "A least recently used (LRU) cache implementation";
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ abbradar ];
};
};
pylru = callPackage ../development/python-modules/pylru/default.nix { };
lark-parser = callPackage ../development/python-modules/lark-parser { };