1{ lib
2, buildPythonPackage
3, fetchPypi
4, pkgs
5, pytest
6, isPy3k
7}:
8
9buildPythonPackage rec {
10 pname = "plyvel";
11 version = "1.3.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "a7a09033a0fd33ca47094e8bbe01714abfcf644f4b7a337d3970e91a2599e2c4";
16 };
17
18 buildInputs = [ pkgs.leveldb ] ++ lib.optional isPy3k pytest;
19
20 # no tests for python2
21 doCheck = isPy3k;
22
23 meta = with lib; {
24 description = "Fast and feature-rich Python interface to LevelDB";
25 platforms = platforms.unix;
26 homepage = "https://github.com/wbolster/plyvel";
27 license = licenses.bsd3;
28 };
29}