mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #148703 from fabaff/reolink
python3Packages.reolink: init at 0.0.53
This commit is contained in:
commit
c67abfa3d4
2 changed files with 69 additions and 0 deletions
67
pkgs/development/python-modules/reolink/default.nix
Normal file
67
pkgs/development/python-modules/reolink/default.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, aiounittest
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, ffmpeg-python
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "reolink";
|
||||
version = "0.0.53";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fwestenberg";
|
||||
repo = pname;
|
||||
# https://github.com/fwestenberg/reolink/issues/78
|
||||
rev = "0053";
|
||||
sha256 = "sha256-kEG+kRTWaC6eQbmlasAWIESFdKPoxQCdZLRrQwb2aRU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
ffmpeg-python
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aiounittest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Packages in nixpkgs is different than the module name
|
||||
substituteInPlace setup.py \
|
||||
--replace "ffmpeg" "ffmpeg-python"
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
"test.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require network access
|
||||
"test1_settings"
|
||||
"test2_states"
|
||||
"test3_images"
|
||||
"test4_properties"
|
||||
"test_succes"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"reolink"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to interact with the Reolink IP camera API";
|
||||
homepage = "https://github.com/fwestenberg/reolink";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -8230,6 +8230,8 @@ in {
|
|||
|
||||
rencode = callPackage ../development/python-modules/rencode { };
|
||||
|
||||
reolink = callPackage ../development/python-modules/reolink { };
|
||||
|
||||
reparser = callPackage ../development/python-modules/reparser { };
|
||||
|
||||
repeated_test = callPackage ../development/python-modules/repeated_test { };
|
||||
|
|
Loading…
Reference in a new issue