2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
2022-06-16 17:23:12 +00:00
|
|
|
, stdenv
|
2021-05-20 23:08:51 +00:00
|
|
|
, buildPythonPackage
|
2022-08-12 12:06:08 +00:00
|
|
|
, build
|
2022-06-16 17:23:12 +00:00
|
|
|
, click
|
|
|
|
, fetchPypi
|
|
|
|
, pep517
|
2021-05-20 23:08:51 +00:00
|
|
|
, pip
|
|
|
|
, pytest-xdist
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2021-05-20 23:08:51 +00:00
|
|
|
, setuptools-scm
|
2023-10-09 19:29:22 +00:00
|
|
|
, tomli
|
|
|
|
, tomli-w
|
2022-06-16 17:23:12 +00:00
|
|
|
, wheel
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-tools";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "7.3.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "pyproject";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-jpyZEn/gJMAltGoLLRXHvUfxjzMibPczDTVJNmP8HR0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = [ ./fix-setup-py-bad-syntax-detection.patch ];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
build
|
2021-12-06 16:07:01 +00:00
|
|
|
click
|
|
|
|
pep517
|
|
|
|
pip
|
2022-06-16 17:23:12 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
|
|
tomli
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
2023-10-09 19:29:22 +00:00
|
|
|
tomli-w
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
|
|
|
|
# https://github.com/python/cpython/issues/74570#issuecomment-1093748531
|
|
|
|
export no_proxy='*';
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTests = [
|
2022-06-16 17:23:12 +00:00
|
|
|
# Tests require network access
|
2021-12-06 16:07:01 +00:00
|
|
|
"network"
|
|
|
|
"test_direct_reference_with_extras"
|
2022-08-12 12:06:08 +00:00
|
|
|
"test_local_duplicate_subdependency_combined"
|
2022-09-30 11:47:45 +00:00
|
|
|
"test_bad_setup_file"
|
2023-04-12 12:48:02 +00:00
|
|
|
# Assertion error
|
|
|
|
"test_compile_recursive_extras"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"piptools"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Keeps your pinned dependencies fresh";
|
|
|
|
homepage = "https://github.com/jazzband/pip-tools/";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/jazzband/pip-tools/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|