Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 52 lines 1.0 kB view raw
1{ lib 2, backoff 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, pyserial 7, pyserial-asyncio 8, pytestCheckHook 9, setuptools 10}: 11 12buildPythonPackage rec { 13 pname = "velbus-aio"; 14 version = "2023.11.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "Cereal2nd"; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-j0NGeuxhtxmlpal9MpnlHqGv47uTVx1Lyfy9u0cEtYg="; 24 fetchSubmodules = true; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 ]; 30 31 propagatedBuildInputs = [ 32 backoff 33 pyserial 34 pyserial-asyncio 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ 42 "velbusaio" 43 ]; 44 45 meta = with lib; { 46 description = "Python library to support the Velbus home automation system"; 47 homepage = "https://github.com/Cereal2nd/velbus-aio"; 48 changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${version}"; 49 license = with licenses; [ asl20 ]; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}