Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / reolink-aio / default.nix
blob832d8438475913d3e87cf2e4da32531373d4f1cf
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , orjson
6 , pythonOlder
7 , typing-extensions
8 }:
10 buildPythonPackage rec {
11   pname = "reolink-aio";
12   version = "0.7.15";
13   format = "setuptools";
15   disabled = pythonOlder "3.9";
17   src = fetchFromGitHub {
18     owner = "starkillerOG";
19     repo = "reolink_aio";
20     rev = "refs/tags/${version}";
21     hash = "sha256-BSl7dECYJIjR9QTvcizUF3Lz1jmgm9xi4kPt7PdO/Nk=";
22   };
24   propagatedBuildInputs = [
25     aiohttp
26     orjson
27     typing-extensions
28   ];
30   pythonImportsCheck = [
31     "reolink_aio"
32   ];
34   # All tests require a network device
35   doCheck = false;
37   meta = with lib; {
38     description = "Module to interact with the Reolink IP camera API";
39     homepage = "https://github.com/starkillerOG/reolink_aio";
40     changelog = "https://github.com/starkillerOG/reolink_aio/releases/tag/${version}";
41     license = with licenses; [ mit ];
42     maintainers = with maintainers; [ fab ];
43   };