2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pkgs
|
|
|
|
, pytest
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plyvel";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "1.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "a7a09033a0fd33ca47094e8bbe01714abfcf644f4b7a337d3970e91a2599e2c4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ pkgs.leveldb ] ++ lib.optional isPy3k pytest;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# no tests for python2
|
|
|
|
doCheck = isPy3k;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast and feature-rich Python interface to LevelDB";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
homepage = "https://github.com/wbolster/plyvel";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|