at master 895 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 requests, 8 requests-mock, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pyfibaro"; 14 version = "0.8.3"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "rappenze"; 21 repo = "pyfibaro"; 22 tag = version; 23 hash = "sha256-KdlndW066TDxZpkIP0Oa3Lii0mBpwELfHtoGKiwh6GE="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ requests ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 requests-mock 33 ]; 34 35 pythonImportsCheck = [ "pyfibaro" ]; 36 37 meta = with lib; { 38 description = "Library to access FIBARO Home center"; 39 homepage = "https://github.com/rappenze/pyfibaro"; 40 changelog = "https://github.com/rappenze/pyfibaro/releases/tag/${src.tag}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}