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