1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, pkgs
5, pytest
6, isPy3k
7}:
8
9buildPythonPackage rec {
10 pname = "plyvel";
11 version = "1.0.5";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "14cbdyq1s8xmvha3lj942gw478cd6jyhkw8n0mhxpgbz8px9jkfn";
16 };
17
18 buildInputs = [ pkgs.leveldb ] ++ stdenv.lib.optional isPy3k pytest;
19
20 # no tests for python2
21 doCheck = isPy3k;
22
23 meta = with stdenv.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}