diff --git a/pkgs/development/python-modules/lmdb/default.nix b/pkgs/development/python-modules/lmdb/default.nix new file mode 100644 index 000000000000..d46b51e27d3f --- /dev/null +++ b/pkgs/development/python-modules/lmdb/default.nix @@ -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 ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a781a3558fb3..95fdad4faec2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1958,29 +1958,9 @@ in { 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 { name = "logilab-astng-0.24.3"; + lmdb = callPackage ../development/python-modules/lmdb { }; src = pkgs.fetchurl { url = "http://download.logilab.org/pub/astng/${name}.tar.gz";