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