depot/third_party/nixpkgs/pkgs/development/python-modules/pip-tools/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

57 lines
1 KiB
Nix

{ lib
, fetchPypi
, pythonOlder
, buildPythonPackage
, pip
, pytestCheckHook
, pytest-xdist
, click
, setuptools-scm
, pep517
, stdenv
}:
buildPythonPackage rec {
pname = "pip-tools";
version = "6.6.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Y04+jUcHJXwAQxPRap1sFMHOlNPA+h+Tw40mRAHy5PI=";
};
checkInputs = [
pytestCheckHook
pytest-xdist
];
preCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
# https://github.com/python/cpython/issues/74570#issuecomment-1093748531
export no_proxy='*';
'';
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
click
pep517
pip
];
disabledTests = [
# these want internet access
"network"
"test_direct_reference_with_extras"
];
meta = with lib; {
description = "Keeps your pinned dependencies fresh";
homepage = "https://github.com/jazzband/pip-tools/";
license = licenses.bsd3;
maintainers = with maintainers; [ zimbatm ];
};
}