about summary refs log tree commit diff
path: root/pkgs/development/python-modules/httpretty
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-06-07 14:46:11 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2020-06-11 10:00:26 +0200
commitc1faf4efd8753747f322f6eeddac65fafc88f09c (patch)
treee39864d7cc93d9bb4eb8dba308497c0a04846aba /pkgs/development/python-modules/httpretty
parent93c3c181fa066294518aec8a080db6093058e013 (diff)
python3.pkgs.httpretty: only run unit tests
Diffstat (limited to 'pkgs/development/python-modules/httpretty')
-rw-r--r--pkgs/development/python-modules/httpretty/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/httpretty/default.nix b/pkgs/development/python-modules/httpretty/default.nix
index 3dd5b63bbf7d4..895a28356ee5a 100644
--- a/pkgs/development/python-modules/httpretty/default.nix
+++ b/pkgs/development/python-modules/httpretty/default.nix
@@ -12,6 +12,9 @@
 , nose-randomly
 , six
 , mock
+, eventlet
+, pytest
+, freezegun
 }:
 
 buildPythonPackage rec {
@@ -29,11 +32,15 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [ six ];
 
-  checkInputs = [ nose sure coverage mock rednose
+  checkInputs = [ nose sure coverage mock rednose pytest
     # Following not declared in setup.py
-    nose-randomly requests tornado httplib2 nose-exclude
+    nose-randomly requests tornado httplib2 nose-exclude freezegun
   ];
 
+  checkPhase = ''
+    nosetests tests/unit # functional tests cause trouble requiring /etc/protocol
+  '';
+
   __darwinAllowLocalNetworking = true;
 
   # Those flaky tests are failing intermittently on all platforms