1{ lib
2, requests
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "aladdin-connect";
10 version = "0.4";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "shoejosh";
17 repo = pname;
18 rev = "refs/tags/${version}";
19 hash = "sha256-kLvMpSGa5WyDOH3ejAJyFGsB9IiMXp+nvVxM/ZkxyFw=";
20 };
21
22 propagatedBuildInputs = [
23 requests
24 ];
25
26 # Project has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "aladdin_connect"
31 ];
32
33 meta = with lib; {
34 description = "Python library for interacting with Genie Aladdin Connect devices";
35 homepage = "https://github.com/shoejosh/aladdin-connect";
36 changelog = "https://github.com/shoejosh/aladdin-connect/releases/tag/${version}";
37 license = with licenses; [ mit ];
38 maintainers = with maintainers; [ fab ];
39 };
40}