pythonPackages.lmdb: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 23:46:46 -04:00 committed by Frederik Rietdijk
parent 6102dd1991
commit dd44ffbcbe
2 changed files with 27 additions and 21 deletions

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "lmdb";
version = "0.92";
src = fetchPypi {
inherit pname version;
sha256 = "01nw6r08jkipx6v92kw49z34wmwikrpvc5j9xawdiyg1n2526wrx";
};
# Some sort of mysterious failure with lmdb.tool
doCheck = !isPy3k;
meta = with stdenv.lib; {
description = "Universal Python binding for the LMDB 'Lightning' Database";
homepage = "https://github.com/dw/py-lmdb";
license = licenses.openldap;
maintainers = with maintainers; [ copumpkin ];
};
}

View File

@ -1958,29 +1958,9 @@ in {
PyLTI = callPackage ../development/python-modules/pylti { }; PyLTI = callPackage ../development/python-modules/pylti { };
lmdb = buildPythonPackage rec {
pname = "lmdb";
version = "0.92";
name = "${pname}-${version}";
src = self.fetchPypi {
inherit pname version;
sha256 = "01nw6r08jkipx6v92kw49z34wmwikrpvc5j9xawdiyg1n2526wrx";
};
# Some sort of mysterious failure with lmdb.tool
doCheck = !isPy3k;
meta = {
description = "Universal Python binding for the LMDB 'Lightning' Database";
homepage = "https://github.com/dw/py-lmdb";
license = licenses.openldap;
maintainers = with maintainers; [ copumpkin ];
};
};
logilab_astng = buildPythonPackage rec { logilab_astng = buildPythonPackage rec {
name = "logilab-astng-0.24.3"; name = "logilab-astng-0.24.3";
lmdb = callPackage ../development/python-modules/lmdb { };
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "http://download.logilab.org/pub/astng/${name}.tar.gz"; url = "http://download.logilab.org/pub/astng/${name}.tar.gz";