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

45 lines
831 B
Nix
Raw Normal View History

2021-09-29 07:41:51 +00:00
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
2019-02-28 06:03:19 +00:00
buildPythonPackage rec {
pname = "aiounifi";
2021-10-30 20:36:11 +00:00
version = "29";
2019-02-28 06:03:19 +00:00
2021-09-29 07:41:51 +00:00
disabled = pythonOlder "3.7";
2019-02-28 06:03:19 +00:00
2021-09-29 07:41:51 +00:00
src = fetchFromGitHub {
owner = "Kane610";
repo = pname;
rev = "v${version}";
2021-10-30 20:36:11 +00:00
sha256 = "sha256-A2+jLxKpha7HV1m3uzy00o8tsjwx0Uuwn5x3DO9daTI=";
2019-02-28 06:03:19 +00:00
};
2021-09-29 07:41:51 +00:00
propagatedBuildInputs = [
aiohttp
];
2019-02-28 06:03:19 +00:00
2021-09-29 07:41:51 +00:00
checkInputs = [
aioresponses
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
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";
license = licenses.mit;
2019-02-28 06:03:19 +00:00
maintainers = with maintainers; [ peterhoeg ];
};
}