python3Packages.pip-tools: use pytestCheckHook, disable failing test, cleanup

This commit is contained in:
misuzu 2021-11-06 09:51:16 +02:00 committed by Jonathan Ringer
parent 834d9d1bd1
commit 541fe07bb1
2 changed files with 21 additions and 15 deletions

View File

@ -3,13 +3,10 @@
, pythonOlder
, buildPythonPackage
, pip
, pytest
, pytestCheckHook
, pytest-xdist
, click
, setuptools-scm
, git
, glibcLocales
, mock
, pep517
}:
@ -24,14 +21,26 @@ buildPythonPackage rec {
sha256 = "992d968df6f1a19d4d37c53b68b3d4b601b894fb3ee0926d1fa762ebc7c7e9e9";
};
LC_ALL = "en_US.UTF-8";
checkInputs = [ pytest git glibcLocales mock pytest-xdist ];
propagatedBuildInputs = [ pip click setuptools-scm pep517 ];
checkInputs = [
pytestCheckHook
pytest-xdist
];
checkPhase = ''
export HOME=$(mktemp -d) VIRTUAL_ENV=1
py.test -m "not network"
'';
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";

View File

@ -5676,10 +5676,7 @@ in {
pipdate = callPackage ../development/python-modules/pipdate { };
pip-tools = callPackage ../development/python-modules/pip-tools {
git = pkgs.gitMinimal;
inherit (pkgs) glibcLocales;
};
pip-tools = callPackage ../development/python-modules/pip-tools { };
pipx = callPackage ../development/python-modules/pipx { };