mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
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
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user