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";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "4ea98bea04ebf0f44747bacdfafefc8827787106fbb787f0aedc46482b2dfd53";
|
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;
|
|
|
|
};
|
|
|
|
}
|