587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
39 lines
803 B
Nix
39 lines
803 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
, cython
|
|
, zstd
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "indexed_zstd";
|
|
version = "1.6.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-icCerrv6ihBjSTS4Fsw7qhoA5ha8yegfMVRiIOhTvvY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython setuptools ];
|
|
|
|
buildInputs = [ zstd.dev ];
|
|
|
|
postPatch = "cython -3 --cplus indexed_zstd/indexed_zstd.pyx";
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "indexed_zstd" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to seek within compressed zstd files";
|
|
homepage = "https://github.com/martinellimarco/indexed_zstd";
|
|
license = licenses.mit;
|
|
maintainers = with lib.maintainers; [ mxmlnkn ];
|
|
};
|
|
}
|