Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 bleak, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-mock, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "fjaraskupan"; 14 version = "2.3.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "elupus"; 21 repo = "fjaraskupan"; 22 tag = version; 23 hash = "sha256-IKi2kaypwHdK9w+FZlWrreUXBgBgg4y3D8bSJhKHSYo="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ bleak ]; 29 30 nativeCheckInputs = [ 31 pytest-mock 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "fjaraskupan" ]; 36 37 meta = with lib; { 38 description = "Module for controlling Fjäråskupan kitchen fans"; 39 homepage = "https://github.com/elupus/fjaraskupan"; 40 changelog = "https://github.com/elupus/fjaraskupan/releases/tag/${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}