10 buildPythonPackage rec {
11 pname = "python-snappy";
15 inherit pname version;
16 sha256 = "06l9my361ig4x5ycyrmq33q83zcdib3y2zxfxv7k7dlpyp9ri2hn";
19 buildInputs = [ snappy ];
21 propagatedBuildInputs = lib.optional isPyPy cffi;
23 checkInputs = [ nose ];
26 rm -r snappy # prevent local snappy from being picked up
27 nosetests test_snappy.py
28 '' + lib.optionalString isPyPy ''
29 nosetests test_snappy_cffi.py
33 description = "Python library for the snappy compression library from Google";
34 homepage = "https://github.com/andrix/python-snappy";
35 license = licenses.bsd3;
36 maintainers = [ maintainers.costrouc ];