1{ lib
2, aiohttp
3, beautifulsoup4
4, buildPythonPackage
5, fetchFromGitHub
6, pkce
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "pymyq";
12 version = "3.1.5";
13 disabled = pythonOlder "3.8";
14
15 src = fetchFromGitHub {
16 owner = "arraylabs";
17 repo = pname;
18 rev = "refs/tags/v${version}";
19 sha256 = "sha256-/2eWB4rtHPptfc8Tm0CGk0UB+Hq1EmNhWmdrpPiUJcw=";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 beautifulsoup4
25 pkce
26 ];
27
28 # Project has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "pymyq" ];
32
33 meta = with lib; {
34 description = "Python wrapper for MyQ API";
35 homepage = "https://github.com/arraylabs/pymyq";
36 license = with licenses; [ mit ];
37 maintainers = with maintainers; [ fab ];
38 };
39}