Commit f3d86452 authored by Tony Zorman's avatar Tony Zorman
Browse files

python3Packages.pip-tools: fix build

+ Adjust the patch, which did not seem to apply correctly.
+ Disable deprecation tests, which trigger a build failure.

Fixes: https://github.com/NixOS/nixpkgs/commit/6ac2d27e70b29fb6c3b09a802680b05777edb8bb
parent 1dd6addc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -68,6 +68,9 @@ buildPythonPackage rec {
    "test_compile_recursive_extras"
    "test_combine_different_extras_of_the_same_package"
    "test_diff_should_not_uninstall"
    "test_cli_compile_all_extras_with_multiple_packages"
    # Deprecations
    "test_error_in_pyproject_toml"
  ];

  pythonImportsCheck = [
+13 −12
Original line number Diff line number Diff line
diff --color -ru a/piptools/scripts/compile.py b/piptools/scripts/compile.py
--- a/piptools/scripts/compile.py	2022-06-30 11:24:26.000000000 +0200
+++ b/piptools/scripts/compile.py	2022-08-01 13:40:58.392515765 +0200
@@ -6,7 +6,7 @@
 from typing import IO, Any, BinaryIO, List, Optional, Tuple, Union, cast
diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py
index 195faa7..3e69437 100755
--- a/piptools/scripts/compile.py
+++ b/piptools/scripts/compile.py
@@ -9,7 +9,7 @@ from pathlib import Path
 from typing import IO, Any, BinaryIO, cast

 import click
-from build import BuildBackendException
+from build import BuildException
 from build.util import project_wheel_metadata
 from click.utils import LazyFile, safecall
 from pip._internal.commands import create_command
@@ -421,7 +421,7 @@
                 metadata = project_wheel_metadata(
                     os.path.dirname(os.path.abspath(src_file))
 from pip._internal.req import InstallRequirement
 from pip._internal.req.constructors import install_req_from_line
@@ -369,6 +369,6 @@ def cli(
                     isolated=build_isolation,
                     quiet=log.verbosity <= 0,
                 )
-            except BuildBackendException as e:
+            except (BuildException, StopIteration) as e: