depot/third_party/nixpkgs/pkgs/development/python-modules/rapidgzip/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

35 lines
931 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, nasm
}:
buildPythonPackage rec {
pname = "rapidgzip";
version = "0.11.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-pcKO9BovkUDlRjE8MZQEfTSutVMB/9beyAyP3vChMUE=";
};
nativeBuildInputs = [ nasm ];
# has no tests
doCheck = false;
pythonImportsCheck = [ "rapidgzip" ];
meta = with lib; {
description = "Python library for parallel decompression and seeking within compressed gzip files";
homepage = "https://github.com/mxmlnkn/rapidgzip";
changelog = "https://github.com/mxmlnkn/rapidgzip/blob/rapidgzip-v${version}/python/rapidgzip/CHANGELOG.md";
license = licenses.mit; # dual MIT and asl20, https://internals.rust-lang.org/t/rationale-of-apache-dual-licensing/8952
maintainers = with lib.maintainers; [ mxmlnkn ];
platforms = platforms.all;
};
}