blob: ac8e104ce9af246dd4c81b609373e4fbef6b2d9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
buildPythonPackage,
cython,
fetchPypi,
setuptools,
nasm,
}:
buildPythonPackage rec {
pname = "rapidgzip";
version = "0.14.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-+u1GAToaYqUZPElhWolmg+pcFO1HRLy0vRhpsUIFUdg=";
};
prePatch = ''
# pythonRelaxDeps doesn't work here
substituteInPlace pyproject.toml \
--replace-fail "setuptools >= 61.2, < 72" "setuptools" \
--replace-fail "cython >= 3, < 3.1" cython
'';
nativeBuildInputs = [
cython
nasm
setuptools
];
# has no tests
doCheck = false;
pythonImportsCheck = [ "rapidgzip" ];
meta = {
description = "Python library for parallel decompression and seeking within compressed gzip files";
mainProgram = "rapidgzip";
homepage = "https://github.com/mxmlnkn/rapidgzip";
changelog = "https://github.com/mxmlnkn/rapidgzip/blob/rapidgzip-v${version}/python/rapidgzip/CHANGELOG.md";
license = lib.licenses.mit; # dual MIT and asl20, https://internals.rust-lang.org/t/rationale-of-apache-dual-licensing/8952
maintainers = with lib.maintainers; [ mxmlnkn ];
};
}
|