mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
Merge pull request #193926 from gador/msrest-0.7.1
This commit is contained in:
commit
2ee5c2fa1c
@ -7,7 +7,6 @@
|
||||
, aiohttp
|
||||
, flask
|
||||
, mock
|
||||
, msrest
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
, pytest-trio
|
||||
@ -39,7 +38,6 @@ buildPythonPackage rec {
|
||||
aiohttp
|
||||
flask
|
||||
mock
|
||||
msrest
|
||||
pytest
|
||||
pytest-trio
|
||||
pytest-asyncio
|
||||
@ -78,6 +76,11 @@ buildPythonPackage rec {
|
||||
"tests/testserver_tests/"
|
||||
# requires missing pytest plugin
|
||||
"tests/async_tests/test_rest_asyncio_transport.py"
|
||||
# needs msrest, which cannot be included in checkInputs due to circular dependency new in msrest 0.7.1
|
||||
# azure-core needs msrest which needs azure-core
|
||||
"tests/test_polling.py"
|
||||
"tests/async_tests/test_base_polling_async.py"
|
||||
"tests/async_tests/test_polling_async.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, aiodns
|
||||
, aiohttp
|
||||
, azure-core
|
||||
, buildPythonPackage
|
||||
, certifi
|
||||
, fetchFromGitHub
|
||||
@ -16,7 +17,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "msrest";
|
||||
version = "0.6.21";
|
||||
version = "0.7.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
@ -24,11 +25,13 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "Azure";
|
||||
repo = "msrest-for-python";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-IlBwlVQ/v+vJmCWNbFZKGL6a9K09z4AYrPm3kwaA/nI=";
|
||||
# no tag for 0.7.1
|
||||
rev = "2d8fd04f68a124d0f3df7b81584accc3270b1afc";
|
||||
hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
azure-core
|
||||
aiodns
|
||||
aiohttp
|
||||
certifi
|
||||
|
@ -16,6 +16,10 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ msrest ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "msrest>=0.6.0,<0.7.0" "msrest"
|
||||
'';
|
||||
|
||||
# Tests are highly impure
|
||||
checkPhase = ''
|
||||
${python.interpreter} -c 'import vsts.version; print(vsts.version.VERSION)'
|
||||
|
Loading…
Reference in New Issue
Block a user