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