1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
82 lines
1.6 KiB
Nix
82 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
aiodns,
|
|
aiohttp,
|
|
azure-core,
|
|
buildPythonPackage,
|
|
certifi,
|
|
fetchFromGitHub,
|
|
httpretty,
|
|
isodate,
|
|
pytest-aiohttp,
|
|
pytestCheckHook,
|
|
pythonAtLeast,
|
|
requests,
|
|
requests-oauthlib,
|
|
setuptools,
|
|
trio,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "msrest";
|
|
version = "0.7.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "msrest-for-python";
|
|
# no tag for 0.7.1
|
|
rev = "2d8fd04f68a124d0f3df7b81584accc3270b1afc";
|
|
hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
azure-core
|
|
aiodns
|
|
aiohttp
|
|
certifi
|
|
isodate
|
|
requests
|
|
requests-oauthlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
httpretty
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
trio
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test require network access
|
|
"test_basic_aiohttp"
|
|
"test_basic_aiohttp"
|
|
"test_basic_async_requests"
|
|
"test_basic_async_requests"
|
|
"test_conf_async_requests"
|
|
"test_conf_async_requests"
|
|
"test_conf_async_trio_requests"
|
|
]
|
|
++ lib.optionals (pythonAtLeast "3.12") [
|
|
# AttributeError: 'TestAuthentication' object has no attribute...
|
|
"test_apikey_auth"
|
|
"test_cs_auth"
|
|
"test_eventgrid_auth"
|
|
"test_eventgrid_domain_auth"
|
|
];
|
|
|
|
pythonImportsCheck = [ "msrest" ];
|
|
|
|
meta = {
|
|
description = "Runtime library for AutoRest generated Python clients";
|
|
homepage = "https://github.com/Azure/msrest-for-python";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
bendlas
|
|
maxwilson
|
|
];
|
|
};
|
|
}
|