Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / blinkpy / default.nix
blob4df10e61970c689d40a5e04ccfd9fd2b1b5e88fb
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , aiofiles
5 , aiohttp
6 , pytestCheckHook
7 , python-dateutil
8 , python-slugify
9 , pythonOlder
10 , requests
11 , setuptools
12 , sortedcontainers
15 buildPythonPackage rec {
16   pname = "blinkpy";
17   version = "0.22.7";
18   pyproject = true;
20   disabled = pythonOlder "3.9";
22   src = fetchFromGitHub {
23     owner = "fronzbot";
24     repo = "blinkpy";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-FfjvF6PBM+18JgQBP6vyElQYWMVizAEGk92ILwxpFSk=";
27   };
29   postPatch = ''
30     substituteInPlace pyproject.toml \
31       --replace ', "wheel~=0.40.0"' "" \
32       --replace "setuptools~=68.0" "setuptools"
33   '';
35   nativeBuildInputs = [
36     setuptools
37   ];
39   propagatedBuildInputs = [
40     aiofiles
41     aiohttp
42     python-dateutil
43     python-slugify
44     requests
45     sortedcontainers
46   ];
48   nativeCheckInputs = [
49     pytestCheckHook
50   ];
52   pythonImportsCheck = [
53     "blinkpy"
54     "blinkpy.api"
55     "blinkpy.auth"
56     "blinkpy.blinkpy"
57     "blinkpy.camera"
58     "blinkpy.helpers.util"
59     "blinkpy.sync_module"
60   ];
62   meta = with lib; {
63     description = "Python library for the Blink Camera system";
64     homepage = "https://github.com/fronzbot/blinkpy";
65     changelog = "https://github.com/fronzbot/blinkpy/blob/${src.rev}/CHANGES.rst";
66     license = licenses.mit;
67     maintainers = with maintainers; [ dotlambda ];
68   };