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-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
|
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";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "6.6.2";
|
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-9jhQOp932Y2afXJYSxUI0/gu0Bm4+rJPTlrQeMG4yV4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
pep517
|
|
|
|
pip
|
2022-06-16 17:23:12 +00:00
|
|
|
setuptools
|
|
|
|
wheel
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
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/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|