about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-localserver/default.nix
diff options
context:
space:
mode:
authorSirio Balmelli <sirio@b-ad.ch>2020-07-21 03:24:42 +0200
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-07-22 16:48:24 +0200
commit163e7a0663205700c1cbd75dae112f9636c40e4c (patch)
tree962e6013b447fe89845386ca14ed42f48348ec70 /pkgs/development/python-modules/pytest-localserver/default.nix
parent70f6c1a9baa5af5e78589faab8fc7b3270fefd38 (diff)
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>
Diffstat (limited to 'pkgs/development/python-modules/pytest-localserver/default.nix')
-rw-r--r--pkgs/development/python-modules/pytest-localserver/default.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/pytest-localserver/default.nix b/pkgs/development/python-modules/pytest-localserver/default.nix
index 6ea0b9d3e574d..577400b859eb3 100644
--- a/pkgs/development/python-modules/pytest-localserver/default.nix
+++ b/pkgs/development/python-modules/pytest-localserver/default.nix
@@ -1,9 +1,6 @@
 { buildPythonPackage
 , lib
 , fetchPypi
-, requests
-, pytest
-, six
 , werkzeug
 }:
 
@@ -17,16 +14,16 @@ buildPythonPackage rec {
   };
 
   propagatedBuildInputs = [ werkzeug ];
-  checkInputs = [ pytest six requests ];
 
-  checkPhase = ''
-    pytest
-  '';
+  # all tests access network: does not work in sandbox
+  doCheck = false;
+  pythonImportsCheck = [ "pytest_localserver" ];
 
-  meta = {
+  meta = with lib; {
     description = "Plugin for the pytest testing framework to test server connections locally";
     homepage = "https://pypi.python.org/pypi/pytest-localserver";
-    license = lib.licenses.mit;
+    license = licenses.mit;
+    maintainers = with maintainers; [ siriobalmelli ];
   };
 }