mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #246400 from fabaff/reolink-aio-bump
python311Packages.reolink-aio: 0.7.3 -> 0.7.6
This commit is contained in:
commit
6306608537
@ -1,17 +1,16 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, aiounittest
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, ffmpeg-python
|
, ffmpeg-python
|
||||||
, pytestCheckHook
|
, orjson
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "reolink-aio";
|
pname = "reolink-aio";
|
||||||
version = "0.7.3";
|
version = "0.7.6";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
@ -20,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
owner = "starkillerOG";
|
owner = "starkillerOG";
|
||||||
repo = "reolink_aio";
|
repo = "reolink_aio";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-QCs0tb0yS5el6kYIoWm71x14e0rsp3lOUntgrj0hvBo=";
|
hash = "sha256-muxM9+3D8WL2muw5yxbYKmbkVc5lTcj9XQOr67hb/pU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -28,34 +27,16 @@ buildPythonPackage rec {
|
|||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "ffmpeg" "ffmpeg-python"
|
--replace "ffmpeg" "ffmpeg-python"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
ffmpeg-python
|
ffmpeg-python
|
||||||
|
orjson
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # all testse require a network device
|
# All tests require a network device
|
||||||
|
doCheck = false;
|
||||||
nativeCheckInputs = [
|
|
||||||
aiounittest
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"tests/test.py"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# Tests require network access
|
|
||||||
"test1_settings"
|
|
||||||
"test2_states"
|
|
||||||
"test3_images"
|
|
||||||
"test4_properties"
|
|
||||||
"test_succes"
|
|
||||||
"test_wrong_host"
|
|
||||||
"test_wrong_password"
|
|
||||||
"test_wrong_user"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"reolink_aio"
|
"reolink_aio"
|
||||||
|
Loading…
Reference in New Issue
Block a user