Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / rapidgzip / default.nix
blobace2bad62016859fb781069c38629086c6b17e64
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , nasm
6 }:
8 buildPythonPackage rec {
9   pname = "rapidgzip";
10   version = "0.10.3";
11   format = "setuptools";
13   disabled = pythonOlder "3.6";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-gtxF9V7OQb34Z0cCuTh/Lbe1ttCbdaY0zpM3KHHGGuw=";
18   };
20   nativeBuildInputs = [ nasm ];
22   # has no tests
23   doCheck = false;
25   pythonImportsCheck = [ "rapidgzip" ];
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   };