1{ lib
2, buildPythonPackage
3, fetchPypi
4, pkgs
5, pytest
6, isPy3k
7}:
8
9buildPythonPackage rec {
10 pname = "plyvel";
11 version = "1.4.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "4ea98bea04ebf0f44747bacdfafefc8827787106fbb787f0aedc46482b2dfd53";
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}