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";
|
2021-12-30 19:30:37 +00:00
|
|
|
version = "1.4.0";
|
2018-10-17 19:55:35 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-30 19:30:37 +00:00
|
|
|
sha256 = "4ea98bea04ebf0f44747bacdfafefc8827787106fbb787f0aedc46482b2dfd53";
|
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;
|
|
|
|
};
|
|
|
|
}
|