Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
python.pkgs.msrest: fix build on python2
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schütz committed Mar 19, 2019
1 parent 9dd9769 commit d338fc1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkgs/development/python-modules/msrest/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, isPy3k
, requests
, requests_oauthlib
, isodate
, certifi
, enum34
, typing
, aiohttp
, aiodns
, pytest
, httpretty
, mock
, futures
, trio
}:

Expand All @@ -28,12 +32,12 @@ buildPythonPackage rec {

propagatedBuildInputs = [
requests requests_oauthlib isodate certifi
# optional
aiohttp aiodns
];
] ++ lib.optionals (!isPy3k) [ enum34 typing ]
++ lib.optionals isPy3k [ aiohttp aiodns ];

checkInputs = [ pytest httpretty ]
++ lib.optional (pythonAtLeast "3.5") trio;
++ lib.optionals (!isPy3k) [ mock futures ]
++ lib.optional isPy3k trio;

# Deselected tests require network access
checkPhase = ''
Expand Down

0 comments on commit d338fc1

Please sign in to comment.