1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPyPy
5, snappy
6, cffi
7, unittestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "python-snappy";
12 version = "0.6.1";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-tqEHqwYgasxTWdTFYyvZsi1EhwKnmzFpsMYuD7gIuyo=";
18 };
19
20 buildInputs = [ snappy ];
21
22 propagatedBuildInputs = lib.optional isPyPy cffi;
23
24 nativeCheckInputs = [ unittestCheckHook ];
25
26 meta = with lib; {
27 description = "Python library for the snappy compression library from Google";
28 homepage = "https://github.com/andrix/python-snappy";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ ];
31 };
32}