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