mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python3Packages.pip-tools: use pytestCheckHook, disable failing test, cleanup
This commit is contained in:
parent
834d9d1bd1
commit
541fe07bb1
@ -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";
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user