summary refs log tree commit diff
path: root/pkgs/development/python-modules/msrest
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-03-19 16:38:39 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-03-19 16:40:24 +0100
commit0cbe2fa18cd5c3d788b7045a76984241227f20d0 (patch)
tree15055f3aadda0f69c0fb15598be409c530b0fd60 /pkgs/development/python-modules/msrest
parentfcf74c6dc05d5a41bc04e1ce56072321d715ccfb (diff)
downloadnixpkgs-0cbe2fa18cd5c3d788b7045a76984241227f20d0.tar
nixpkgs-0cbe2fa18cd5c3d788b7045a76984241227f20d0.tar.gz
nixpkgs-0cbe2fa18cd5c3d788b7045a76984241227f20d0.tar.bz2
nixpkgs-0cbe2fa18cd5c3d788b7045a76984241227f20d0.tar.lz
nixpkgs-0cbe2fa18cd5c3d788b7045a76984241227f20d0.tar.xz
nixpkgs-0cbe2fa18cd5c3d788b7045a76984241227f20d0.tar.zst
nixpkgs-0cbe2fa18cd5c3d788b7045a76984241227f20d0.zip
python.pkgs.msrest: cleanup
I accidentally pushed fcf74c6 in a premature state.
Diffstat (limited to 'pkgs/development/python-modules/msrest')
-rw-r--r--pkgs/development/python-modules/msrest/default.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/msrest/default.nix b/pkgs/development/python-modules/msrest/default.nix
index 7e40f555cd7..bb7f8a9c62d 100644
--- a/pkgs/development/python-modules/msrest/default.nix
+++ b/pkgs/development/python-modules/msrest/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
+, pythonAtLeast
 , requests
 , requests_oauthlib
 , isodate
@@ -9,17 +10,15 @@
 , aiodns
 , pytest
 , httpretty
+, trio
 }:
 
 buildPythonPackage rec {
   version = "0.6.4";
   pname = "msrest";
 
-  #src = fetchPypi {
-  #  inherit pname version;
-  #  sha256 = "5dadd54bec98d52cd9f43fb095015c346135b8cafaa35f24c7309cc25d3ad266";
-  #};
-
+  # no tests in PyPI tarball
+  # see https://github.com/Azure/msrest-for-python/pull/152
   src = fetchFromGitHub {
     owner = "Azure";
     repo = "msrest-for-python";
@@ -33,10 +32,12 @@ buildPythonPackage rec {
     aiohttp aiodns
   ];
 
-  checkInputs = [ pytest httpretty ];
+  checkInputs = [ pytest httpretty ]
+    ++ lib.optional (pythonAtLeast "3.5") trio;
 
+  # Deselected tests require network access
   checkPhase = ''
-    pytest tests/
+    pytest tests/ -k "not test_conf_async_trio_requests"
   '';
 
   meta = with lib; {