2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, pip
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytest-xdist
|
|
|
|
, click
|
|
|
|
, setuptools-scm
|
|
|
|
, pep517
|
2022-05-18 14:49:53 +00:00
|
|
|
, stdenv
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-tools";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "6.6.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-Y04+jUcHJXwAQxPRap1sFMHOlNPA+h+Tw40mRAHy5PI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-xdist
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +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
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
pep517
|
|
|
|
pip
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# these want internet access
|
|
|
|
"network"
|
|
|
|
"test_direct_reference_with_extras"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|