2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 19:55:35 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pkgs
|
|
|
|
, pytest
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plyvel";
|
2020-11-29 14:04:36 +00:00
|
|
|
version = "1.3.0";
|
2018-10-17 19:55:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:36 +00:00
|
|
|
sha256 = "a7a09033a0fd33ca47094e8bbe01714abfcf644f4b7a337d3970e91a2599e2c4";
|
2018-10-17 19:55:35 +01:00
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
buildInputs = [ pkgs.leveldb ] ++ lib.optional isPy3k pytest;
|
2018-10-17 19:55:35 +01:00
|
|
|
|
|
|
|
# no tests for python2
|
|
|
|
doCheck = isPy3k;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-17 19:55:35 +01:00
|
|
|
description = "Fast and feature-rich Python interface to LevelDB";
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/wbolster/plyvel";
|
2018-10-17 19:55:35 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|