1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, nasm
6}:
7
8buildPythonPackage rec {
9 pname = "rapidgzip";
10 version = "0.10.3";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-gtxF9V7OQb34Z0cCuTh/Lbe1ttCbdaY0zpM3KHHGGuw=";
18 };
19
20 nativeBuildInputs = [ nasm ];
21
22 # has no tests
23 doCheck = false;
24
25 pythonImportsCheck = [ "rapidgzip" ];
26
27 meta = with lib; {
28 description = "Python library for parallel decompression and seeking within compressed gzip files";
29 homepage = "https://github.com/mxmlnkn/rapidgzip";
30 license = licenses.mit; # dual MIT and asl20, https://internals.rust-lang.org/t/rationale-of-apache-dual-licensing/8952
31 maintainers = with lib.maintainers; [ mxmlnkn ];
32 platforms = platforms.all;
33 };
34}