1 { lib, pkg-config, fetchPypi, buildPythonPackage
5 buildPythonPackage rec {
10 inherit pname version;
11 sha256 = "sha256-9ECFjRmIkOX/UX3/MtFejDG7c1BqiW+br20BTv5i9/w=";
15 substituteInPlace setup.py \
16 --replace "/usr/bin/pkg-config" "${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config"
19 nativeBuildInputs = [ pkg-config ];
20 buildInputs = [ zstd ];
24 "--include-dirs=${zstd}/include"
26 "--library-dirs=${zstd}/lib"
29 # Running tests via setup.py triggers an attempt to recompile with the vendored zstd
31 VERSION = zstd.version;
32 PKG_VERSION = version;
34 checkInputs = [ pytest ];
40 description = "Simple python bindings to Yann Collet ZSTD compression library";
41 homepage = "https://github.com/sergey-dryabzhinsky/python-zstd";
42 license = licenses.bsd2;
43 maintainers = with maintainers; [