Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 29 additions & 12 deletions pkgs/development/python-modules/msrest/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonAtLeast,

# build-system
setuptools,

# dependencies
aiodns,
aiohttp,
azure-core,
buildPythonPackage,
certifi,
fetchFromGitHub,
httpretty,
isodate,
pytest-aiohttp,
pytestCheckHook,
pythonAtLeast,
requests,
requests-oauthlib,
setuptools,

# tests
pytestCheckHook,
pytest-aiohttp,
httpretty,
trio,
}:

Expand All @@ -25,17 +31,18 @@ buildPythonPackage {
src = fetchFromGitHub {
owner = "Azure";
repo = "msrest-for-python";
# no tag for 0.7.1
# no tag for 0.7.1 see:
# https://github.com/Azure/msrest-for-python/issues/254
rev = "2d8fd04f68a124d0f3df7b81584accc3270b1afc";
hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
};

nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];

propagatedBuildInputs = [
azure-core
dependencies = [
aiodns
aiohttp
azure-core
certifi
isodate
requests
Expand All @@ -60,13 +67,23 @@ buildPythonPackage {
"test_conf_async_trio_requests"
]
++ lib.optionals (pythonAtLeast "3.12") [
# AttributeError: 'TestAuthentication' object has no attribute...
# See https://github.com/Azure/msrest-for-python/issues/261
# Upstream ignores the following patch that should fix it:
# https://github.com/Azure/msrest-for-python/pull/262
# And it doesn't apply anymore.
"test_apikey_auth"
"test_cs_auth"
"test_eventgrid_auth"
"test_eventgrid_domain_auth"
];

disabledTestPaths = [
# 2 AssertionErrors... See:
# https://github.com/Azure/msrest-for-python/issues/267
"tests/asynctests/test_async_client.py::TestServiceClient::test_client_send"
"tests/test_client.py::TestServiceClient::test_client_send"
];

pythonImportsCheck = [ "msrest" ];

meta = {
Expand Down
Loading