summary refs log tree commit diff
path: root/pkgs/development/python-modules/cheroot
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-06 00:45:39 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-01-16 09:09:26 -0800
commita93ea0fbd72e75908d05cc8a206aa7b908632fc6 (patch)
treeb9f96d6300b413470637b615994bb94e0961ec22 /pkgs/development/python-modules/cheroot
parent6f7f01a2448283427301bcfa1927f01c361943e0 (diff)
downloadnixpkgs-a93ea0fbd72e75908d05cc8a206aa7b908632fc6.tar
nixpkgs-a93ea0fbd72e75908d05cc8a206aa7b908632fc6.tar.gz
nixpkgs-a93ea0fbd72e75908d05cc8a206aa7b908632fc6.tar.bz2
nixpkgs-a93ea0fbd72e75908d05cc8a206aa7b908632fc6.tar.lz
nixpkgs-a93ea0fbd72e75908d05cc8a206aa7b908632fc6.tar.xz
nixpkgs-a93ea0fbd72e75908d05cc8a206aa7b908632fc6.tar.zst
nixpkgs-a93ea0fbd72e75908d05cc8a206aa7b908632fc6.zip
pythonPackages.cheroot: Use disabledTestFiles
Diffstat (limited to 'pkgs/development/python-modules/cheroot')
-rw-r--r--pkgs/development/python-modules/cheroot/default.nix21
1 files changed, 14 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/cheroot/default.nix b/pkgs/development/python-modules/cheroot/default.nix
index c9d3094d595..e5c7c23e2e4 100644
--- a/pkgs/development/python-modules/cheroot/default.nix
+++ b/pkgs/development/python-modules/cheroot/default.nix
@@ -1,4 +1,8 @@
-{ lib, stdenv, fetchPypi, buildPythonPackage, isPy3k
+{ lib
+, stdenv
+, fetchPypi
+, buildPythonPackage
+, isPy3k
 , jaraco_functools
 , jaraco_text
 , more-itertools
@@ -33,7 +37,8 @@ buildPythonPackage rec {
     # install_requires
     jaraco_functools
 
-    more-itertools six
+    more-itertools
+    six
   ];
 
   checkInputs = [
@@ -49,10 +54,6 @@ buildPythonPackage rec {
     trustme
   ];
 
-  # avoid attempting to use 3 packages not available on nixpkgs
-  # (jaraco.apt, jaraco.context, yg.lockfile)
-  pytestFlagsArray = [ "--ignore=cheroot/test/test_wsgi.py" ];
-
   # Disable doctest plugin because times out
   # Disable xdist (-n arg) because it's incompatible with testmon
   # Deselect test_bind_addr_unix on darwin because times out
@@ -64,7 +65,7 @@ buildPythonPackage rec {
     rm pytest.ini
   '';
 
-  disabledTests= [
+  disabledTests = [
     "tls" # touches network
     "peercreds_unix_sock" # test urls no longer allowed
   ] ++ lib.optionals stdenv.isDarwin [
@@ -72,6 +73,12 @@ buildPythonPackage rec {
     "bind_addr_unix"
   ];
 
+  disabledTestFiles = [
+    # avoid attempting to use 3 packages not available on nixpkgs
+    # (jaraco.apt, jaraco.context, yg.lockfile)
+    "cheroot/test/test_wsgi.py"
+  ];
+
   # Some of the tests use localhost networking.
   __darwinAllowLocalNetworking = true;