1{ lib
2, buildPythonPackage
3, fetchPypi
4, cffi
5, hypothesis
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "zstandard";
11 version = "0.21.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-8I46ENAaJHh35MthqCoxnqdGw1ajeGVYvtJIHmxAVUY=";
19 };
20
21 propagatedNativeBuildInputs = [
22 cffi
23 ];
24
25 propagatedBuildInputs = [
26 cffi
27 ];
28
29 nativeCheckInputs = [
30 hypothesis
31 ];
32
33 pythonImportsCheck = [
34 "zstandard"
35 ];
36
37 meta = with lib; {
38 description = "zstandard bindings for Python";
39 homepage = "https://github.com/indygreg/python-zstandard";
40 license = licenses.bsdOriginal;
41 maintainers = with maintainers; [ arnoldfarkas ];
42 };
43}