nixpkgs/pkgs/development/python-modules/rapidgzip/default.nix
2024-01-09 13:25:17 +00:00

35 lines
931 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, nasm
}:
buildPythonPackage rec {
pname = "rapidgzip";
version = "0.12.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-s4MLxhwoGS7Zvx6k5qh1PWpyTRBUBGVIkPW9q94u+2Q=";
};
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;
};
}