2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pkgs,
|
|
|
|
pytest,
|
|
|
|
isPy3k,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plyvel";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.5.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-PK9gCeT8JPv4cS0/XvPaflZJXCakiN8hYSGPw05GAZw=";
|
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;
|
|
|
|
};
|
|
|
|
}
|