nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, cffi
5, hypothesis
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "zstandard";
11 version = "0.17.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "fa9194cb91441df7242aa3ddc4cb184be38876cb10dd973674887f334bafbfb6";
19 };
20
21 propagatedNativeBuildInputs = [
22 cffi
23 ];
24
25 propagatedBuildInputs = [
26 cffi
27 ];
28
29 checkInputs = [
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}