mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.pytest-localserver: fix build
All package tests rely on networking which breaks sandboxed builds. Fall back to pythonImportsCheck instead. Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
This commit is contained in:
parent
70f6c1a9ba
commit
163e7a0663
1 changed files with 6 additions and 9 deletions
|
@ -1,9 +1,6 @@
|
||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, lib
|
, lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, requests
|
|
||||||
, pytest
|
|
||||||
, six
|
|
||||||
, werkzeug
|
, werkzeug
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -17,16 +14,16 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ werkzeug ];
|
propagatedBuildInputs = [ werkzeug ];
|
||||||
checkInputs = [ pytest six requests ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
# all tests access network: does not work in sandbox
|
||||||
pytest
|
doCheck = false;
|
||||||
'';
|
pythonImportsCheck = [ "pytest_localserver" ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Plugin for the pytest testing framework to test server connections locally";
|
description = "Plugin for the pytest testing framework to test server connections locally";
|
||||||
homepage = "https://pypi.python.org/pypi/pytest-localserver";
|
homepage = "https://pypi.python.org/pypi/pytest-localserver";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ siriobalmelli ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue