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