Martin Weinelt 2023-02-01 23:39:43 +01:00
parent 0bb6811092
commit 4f9b60ea65
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "reolink-aio";
version = "0.2.2";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.9";
@ -20,25 +20,26 @@ buildPythonPackage rec {
owner = "starkillerOG";
repo = "reolink_aio";
rev = "refs/tags/${version}";
sha256 = "sha256-rHiKwr720aTpkem8urnK9TP5CkHCEOHdeBp00rhlitI=";
hash = "sha256-XFqZ/5eK7cYPNsWNFu8UlJfMe28qSZNFrtozB80ZcNM=";
};
propagatedBuildInputs = [
aiohttp
ffmpeg-python
requests
];
nativeCheckInputs = [
aiounittest
pytestCheckHook
];
postPatch = ''
# Packages in nixpkgs is different than the module name
substituteInPlace setup.py \
--replace "ffmpeg" "ffmpeg-python"
'';
propagatedBuildInputs = [
aiohttp
ffmpeg-python
requests
];
doCheck = false; # all testse require a network device
nativeCheckInputs = [
aiounittest
pytestCheckHook
];
pytestFlagsArray = [
"tests/test.py"
@ -51,7 +52,9 @@ buildPythonPackage rec {
"test3_images"
"test4_properties"
"test_succes"
"test_wrong_host"
"test_wrong_password"
"test_wrong_user"
];
pythonImportsCheck = [