20 buildPythonPackage rec {
25 disabled = pythonOlder "3.8";
28 inherit pname version;
29 hash = "sha256-hkgm9Qc4ZEUOJNvuuFzjkgzfsJhIo9aev1N7Uh8UvMk=";
32 patches = [ ./fix-setup-py-bad-syntax-detection.patch ];
34 nativeBuildInputs = [ setuptools-scm ];
36 propagatedBuildInputs = [
43 ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
45 __darwinAllowLocalNetworking = true;
53 preCheck = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) ''
54 # https://github.com/python/cpython/issues/74570#issuecomment-1093748531
59 # Tests require network access
61 "test_direct_reference_with_extras"
62 "test_local_duplicate_subdependency_combined"
65 "test_compile_recursive_extras"
66 "test_combine_different_extras_of_the_same_package"
67 "test_diff_should_not_uninstall"
68 "test_cli_compile_all_extras_with_multiple_packages"
70 "test_error_in_pyproject_toml"
73 pythonImportsCheck = [ "piptools" ];
76 description = "Keeps your pinned dependencies fresh";
77 homepage = "https://github.com/jazzband/pip-tools/";
78 changelog = "https://github.com/jazzband/pip-tools/releases/tag/${version}";
79 license = licenses.bsd3;
80 maintainers = with maintainers; [ zimbatm ];