python3Packages.reolink-aio: 0.2.2 -> 0.3.1
https://github.com/starkillerOG/reolink_aio/releases/tag/0.2.3 https://github.com/starkillerOG/reolink_aio/releases/tag/0.3.0 https://github.com/starkillerOG/reolink_aio/releases/tag/0.3.1
This commit is contained in:
parent
0bb6811092
commit
4f9b60ea65
1 changed files with 16 additions and 13 deletions
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue