mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
python.pkgs.msrest: fix build on python2
This commit is contained in:
parent
9dd9769e46
commit
d338fc1583
@ -1,15 +1,19 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonAtLeast
|
, isPy3k
|
||||||
, requests
|
, requests
|
||||||
, requests_oauthlib
|
, requests_oauthlib
|
||||||
, isodate
|
, isodate
|
||||||
, certifi
|
, certifi
|
||||||
|
, enum34
|
||||||
|
, typing
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, aiodns
|
, aiodns
|
||||||
, pytest
|
, pytest
|
||||||
, httpretty
|
, httpretty
|
||||||
|
, mock
|
||||||
|
, futures
|
||||||
, trio
|
, trio
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -28,12 +32,12 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests requests_oauthlib isodate certifi
|
requests requests_oauthlib isodate certifi
|
||||||
# optional
|
] ++ lib.optionals (!isPy3k) [ enum34 typing ]
|
||||||
aiohttp aiodns
|
++ lib.optionals isPy3k [ aiohttp aiodns ];
|
||||||
];
|
|
||||||
|
|
||||||
checkInputs = [ pytest httpretty ]
|
checkInputs = [ pytest httpretty ]
|
||||||
++ lib.optional (pythonAtLeast "3.5") trio;
|
++ lib.optionals (!isPy3k) [ mock futures ]
|
||||||
|
++ lib.optional isPy3k trio;
|
||||||
|
|
||||||
# Deselected tests require network access
|
# Deselected tests require network access
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user