diff options
Diffstat (limited to 'pkgs/development/python-modules/yalexs/default.nix')
-rw-r--r-- | pkgs/development/python-modules/yalexs/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/yalexs/default.nix b/pkgs/development/python-modules/yalexs/default.nix new file mode 100644 index 00000000000..502eb5c4f68 --- /dev/null +++ b/pkgs/development/python-modules/yalexs/default.nix @@ -0,0 +1,58 @@ +{ lib +, aiofiles +, aiohttp +, aioresponses +, aiounittest +, asynctest +, buildPythonPackage +, fetchFromGitHub +, pubnub +, pytestCheckHook +, python-dateutil +, pythonOlder +, requests +, requests-mock +}: + +buildPythonPackage rec { + pname = "yalexs"; + version = "1.1.12"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "bdraco"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-J7jh8FufGQzYbVhdOPbIpZCjfWZV6oOShy82QXL82b4="; + }; + + propagatedBuildInputs = [ + aiofiles + aiohttp + pubnub + python-dateutil + requests + ]; + + checkInputs = [ + aioresponses + aiounittest + asynctest + pytestCheckHook + requests-mock + ]; + + postPatch = '' + # Not used requirement + substituteInPlace setup.py --replace '"vol",' "" + ''; + + pythonImportsCheck = [ "yalexs" ]; + + meta = with lib; { + description = "Python API for Yale Access (formerly August) Smart Lock and Doorbell"; + homepage = "https://github.com/bdraco/yalexs"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |