mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
python311Packages.pysmartthings: disable tests when aiohttp>=3.9.0
This commit is contained in:
parent
c3d64d2d58
commit
11c3032b98
@ -21,20 +21,23 @@ buildPythonPackage rec {
|
||||
hash = "sha256-r+f2+vEXJdQGDlbs/MhraFgEmsAf32PU282blLRLjzc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
# https://github.com/andrewsayre/pysmartthings/issues/80
|
||||
doCheck = lib.versionOlder aiohttp.version "3.9.0";
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pysmartthings"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user