Unverified Commit e4dd6266 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

python3Packages.rapidgzip: fix build; relax setuptools dependency (#402229)

parents cfc9e092 ad44a2ab
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@ buildPythonPackage rec {
    hash = "sha256-fTXwrxZXtAUakMPAwsDSQz886Dnbkw/b7T1lFt4qXfE=";
  };

  prePatch = ''
    # pythonRelaxDeps doesn't work here
    substituteInPlace pyproject.toml --replace-fail "setuptools >= 61.2, < 72" "setuptools"
  '';

  nativeBuildInputs = [
    cython
    nasm
+6 −0
Original line number Diff line number Diff line
@@ -2,12 +2,14 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fsspec,
  indexed-gzip,
  indexed-zstd,
  libarchive-c,
  pytestCheckHook,
  python-xz,
  pythonOlder,
  writableTmpDirAsHomeHook,
  rapidgzip,
  rarfile,
  setuptools,
@@ -54,6 +56,8 @@ buildPythonPackage rec {
    pytestCheckHook
    zstandard
    zstd
    fsspec
    writableTmpDirAsHomeHook
  ] ++ lib.flatten (builtins.attrValues optional-dependencies);

  pythonImportsCheck = [ "ratarmountcore" ];
@@ -73,6 +77,8 @@ buildPythonPackage rec {
    "test_file_versions"
    "test_stream_compressed"
    "test_chimera_file"
    "test_URLContextManager"
    "test_URL"
  ];

  meta = with lib; {