2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, cython
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2024-04-21 15:54:59 +00:00
|
|
|
, setuptools
|
2023-10-09 19:29:22 +00:00
|
|
|
, nasm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rapidgzip";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.13.1";
|
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-t6mfOsCg0FoV7N4GfTIs1KwxeGIOORuxbEIEJN52nRw=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ cython nasm setuptools ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "rapidgzip" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for parallel decompression and seeking within compressed gzip files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "rapidgzip";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/mxmlnkn/rapidgzip";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/mxmlnkn/rapidgzip/blob/rapidgzip-v${version}/python/rapidgzip/CHANGELOG.md";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.mit; # dual MIT and asl20, https://internals.rust-lang.org/t/rationale-of-apache-dual-licensing/8952
|
|
|
|
maintainers = with lib.maintainers; [ mxmlnkn ];
|
|
|
|
};
|
|
|
|
}
|