Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 49 lines 931 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7, requests-mock 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "pyfibaro"; 13 version = "0.7.1"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchFromGitHub { 19 owner = "rappenze"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-fgFbwMqlQcF83k345kztw/SN5j447/TuJUPYmFPKiFY="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 requests 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 requests-mock 36 ]; 37 38 pythonImportsCheck = [ 39 "pyfibaro" 40 ]; 41 42 meta = with lib; { 43 description = "Library to access FIBARO Home center"; 44 homepage = "https://github.com/rappenze/pyfibaro"; 45 changelog = "https://github.com/rappenze/pyfibaro/releases/tag/${version}"; 46 license = with licenses; [ mit ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}