Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
1{ lib 2, async-timeout 3, buildPythonPackage 4, fetchFromGitHub 5, fetchpatch 6, poetry-core 7, pyserial-asyncio 8, pytest-asyncio 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "elkm1-lib"; 15 version = "2.2.4"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "gwww"; 22 repo = "elkm1"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-qqkKsVSspVBVxX96vlM8+6SqfdIBTcVyODJzQ4Ga+6g="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 async-timeout 33 pyserial-asyncio 34 ]; 35 36 nativeCheckInputs = [ 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ 42 "elkm1_lib" 43 ]; 44 45 meta = with lib; { 46 description = "Python module for interacting with ElkM1 alarm/automation panel"; 47 homepage = "https://github.com/gwww/elkm1"; 48 changelog = "https://github.com/gwww/elkm1/blob/${version}/CHANGELOG.md"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}