11 buildPythonPackage rec {
14 format = "setuptools";
17 inherit pname version;
18 hash = "sha256-HvmAq/Dh4HKwKNLXbvlbR2YyZRyWIlzzC2Gcbu9iVnI=";
22 substituteInPlace setup.py \
23 --replace "/usr/bin/pkg-config" "${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config"
26 nativeBuildInputs = [ pkg-config ];
27 buildInputs = [ zstd ];
31 "--include-dirs=${zstd}/include"
33 "--library-dirs=${zstd}/lib"
36 # Running tests via setup.py triggers an attempt to recompile with the vendored zstd
38 VERSION = zstd.version;
39 PKG_VERSION = version;
41 nativeCheckInputs = [ pytest ];
47 description = "Simple python bindings to Yann Collet ZSTD compression library";
48 homepage = "https://github.com/sergey-dryabzhinsky/python-zstd";
49 license = licenses.bsd2;
50 maintainers = with maintainers; [ eadwu ];