mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python311Packages.aiopvapi: disable failing tests
This commit is contained in:
parent
b4ee3c3cc4
commit
ffd7278f9e
@ -1,16 +1,16 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, async-timeout
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiopvapi";
|
||||
version = "3.0.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@ -21,9 +21,18 @@ buildPythonPackage rec {
|
||||
hash = "sha256-+jhfp8gLEmL8TGPPN7QY8lw1SkV4sMSDb4VSq2OJ6PU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/sander76/aio-powerview-api/pull/31
|
||||
substituteInPlace setup.py \
|
||||
--replace '"asyncio", ' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
@ -34,9 +43,20 @@ buildPythonPackage rec {
|
||||
"aiopvapi"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# https://github.com/sander76/aio-powerview-api/issues/32
|
||||
"tests/test_shade.py"
|
||||
"tests/test_scene.py"
|
||||
"tests/test_room.py"
|
||||
"tests/test_apiresource.py"
|
||||
"tests/test_hub.py"
|
||||
"tests/test_scene_members.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python API for the PowerView API";
|
||||
homepage = "https://github.com/sander76/aio-powerview-api";
|
||||
changelog = "https://github.com/sander76/aio-powerview-api/releases/tag/v${version}";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user