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