567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
816 B
Nix
44 lines
816 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
cython,
|
|
zstd,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "indexed_zstd";
|
|
version = "1.6.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-i3Q3j5Rh/OqxdSFbZeHEiYZN2zS9gWBYk2pifwzKOos=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
setuptools
|
|
];
|
|
|
|
buildInputs = [ zstd.dev ];
|
|
|
|
postPatch = "cython -3 --cplus indexed_zstd/indexed_zstd.pyx";
|
|
|
|
# has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "indexed_zstd" ];
|
|
|
|
meta = {
|
|
description = "Python library to seek within compressed zstd files";
|
|
homepage = "https://github.com/martinellimarco/indexed_zstd";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mxmlnkn ];
|
|
};
|
|
}
|