3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.plyvel: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 14:55:35 -04:00 committed by Frederik Rietdijk
parent 28542253fa
commit 30296bc49e
2 changed files with 30 additions and 20 deletions

View file

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pkgs
, pytest
, isPy3k
}:
buildPythonPackage rec {
pname = "plyvel";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "1scq75qyks9vmjd19bx57f2y60mkdr44ajvb12p3cjg439l96zaq";
};
buildInputs = [ pkgs.leveldb ] ++ stdenv.lib.optional isPy3k pytest;
# no tests for python2
doCheck = isPy3k;
meta = with stdenv.lib; {
description = "Fast and feature-rich Python interface to LevelDB";
homepage = https://github.com/wbolster/plyvel;
license = licenses.bsd3;
};
}

View file

@ -3006,26 +3006,7 @@ in {
ply = callPackage ../development/python-modules/ply { };
plyvel = buildPythonPackage (rec {
name = "plyvel-0.9";
src = pkgs.fetchurl {
url = "mirror://pypi/p/plyvel/${name}.tar.gz";
sha256 = "1scq75qyks9vmjd19bx57f2y60mkdr44ajvb12p3cjg439l96zaq";
};
buildInputs = with self; [ pkgs.leveldb ]
++ optional isPy3k pytest;
# no tests for python2
doCheck = isPy3k;
meta = {
description = "Fast and feature-rich Python interface to LevelDB";
homepage = https://github.com/wbolster/plyvel;
license = licenses.bsd3;
};
});
plyvel = callPackage ../development/python-modules/plyvel { };
osc = buildPythonPackage {
name = "osc-0.162.0-55-gb730f88";