python.pkgs.msrest: cleanup
I accidentally pushed fcf74c6 in a premature state.
This commit is contained in:
parent
fcf74c6dc0
commit
0cbe2fa18c
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, pythonAtLeast
|
||||||
, requests
|
, requests
|
||||||
, requests_oauthlib
|
, requests_oauthlib
|
||||||
, isodate
|
, isodate
|
||||||
@ -9,17 +10,15 @@
|
|||||||
, aiodns
|
, aiodns
|
||||||
, pytest
|
, pytest
|
||||||
, httpretty
|
, httpretty
|
||||||
|
, trio
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.6.4";
|
version = "0.6.4";
|
||||||
pname = "msrest";
|
pname = "msrest";
|
||||||
|
|
||||||
#src = fetchPypi {
|
# no tests in PyPI tarball
|
||||||
# inherit pname version;
|
# see https://github.com/Azure/msrest-for-python/pull/152
|
||||||
# sha256 = "5dadd54bec98d52cd9f43fb095015c346135b8cafaa35f24c7309cc25d3ad266";
|
|
||||||
#};
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Azure";
|
owner = "Azure";
|
||||||
repo = "msrest-for-python";
|
repo = "msrest-for-python";
|
||||||
@ -33,10 +32,12 @@ buildPythonPackage rec {
|
|||||||
aiohttp aiodns
|
aiohttp aiodns
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest httpretty ];
|
checkInputs = [ pytest httpretty ]
|
||||||
|
++ lib.optional (pythonAtLeast "3.5") trio;
|
||||||
|
|
||||||
|
# Deselected tests require network access
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest tests/
|
pytest tests/ -k "not test_conf_async_trio_requests"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user