nixpkgs/pkgs/development/python-modules/aiounifi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-29 07:41:51 +00:00
{ lib
, aiohttp
, aioresponses
, async-timeout
2021-09-29 07:41:51 +00:00
, buildPythonPackage
, fetchFromGitHub
2022-07-06 20:05:28 +00:00
, orjson
2021-09-29 07:41:51 +00:00
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, segno
2021-09-29 07:41:51 +00:00
}:
2019-02-28 06:03:19 +00:00
buildPythonPackage rec {
pname = "aiounifi";
version = "55";
format = "setuptools";
2019-02-28 06:03:19 +00:00
disabled = pythonOlder "3.9";
2019-02-28 06:03:19 +00:00
2021-09-29 07:41:51 +00:00
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
2022-06-20 07:14:40 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-JvuP1Rhq01Y9KbfAJpawUQNWfxvlf9LY82RvXok4tgw=";
2019-02-28 06:03:19 +00:00
};
2021-09-29 07:41:51 +00:00
propagatedBuildInputs = [
aiohttp
async-timeout
2022-07-06 20:05:28 +00:00
orjson
segno
2021-09-29 07:41:51 +00:00
];
2019-02-28 06:03:19 +00:00
nativeCheckInputs = [
2021-09-29 07:41:51 +00:00
aioresponses
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=auto"
];
pythonImportsCheck = [
"aiounifi"
];
2019-02-28 06:03:19 +00:00
meta = with lib; {
2021-09-29 07:41:51 +00:00
description = "Python library for communicating with Unifi Controller API";
homepage = "https://github.com/Kane610/aiounifi";
changelog = "https://github.com/Kane610/aiounifi/releases/tag/v${version}";
2021-09-29 07:41:51 +00:00
license = licenses.mit;
2019-02-28 06:03:19 +00:00
maintainers = with maintainers; [ peterhoeg ];
};
}