2018-10-17 19:55:35 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pkgs
|
|
|
|
, pytest
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plyvel";
|
2018-11-09 05:54:19 +00:00
|
|
|
version = "1.0.5";
|
2018-10-17 19:55:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-09 05:54:19 +00:00
|
|
|
sha256 = "14cbdyq1s8xmvha3lj942gw478cd6jyhkw8n0mhxpgbz8px9jkfn";
|
2018-10-17 19:55:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2018-11-09 21:44:49 +00:00
|
|
|
platforms = platforms.linux;
|
2018-10-17 19:55:35 +01:00
|
|
|
homepage = https://github.com/wbolster/plyvel;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|