mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
pythonPackages.plyvel: refactor move to python-modules
This commit is contained in:
parent
28542253fa
commit
30296bc49e
29
pkgs/development/python-modules/plyvel/default.nix
Normal file
29
pkgs/development/python-modules/plyvel/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user