Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 56 lines 1.1 kB view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, colorlog 5, fetchFromGitHub 6, pint 7, poetry-core 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "aiocomelit"; 14 version = "0.6.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.10"; 18 19 src = fetchFromGitHub { 20 owner = "chemelli74"; 21 repo = "aiocomelit"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-bs+iSe4vu0ej4SQww6mvQqboVKfQrkd9OirBLGbU3gs="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace " --cov=aiocomelit --cov-report=term-missing:skip-covered" "" 29 ''; 30 31 nativeBuildInputs = [ 32 poetry-core 33 ]; 34 35 propagatedBuildInputs = [ 36 aiohttp 37 pint 38 ]; 39 40 nativeCheckInputs = [ 41 colorlog 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ 46 "aiocomelit" 47 ]; 48 49 meta = with lib; { 50 description = "Library to control Comelit Simplehome"; 51 homepage = "https://github.com/chemelli74/aiocomelit"; 52 changelog = "https://github.com/chemelli74/aiocomelit/blob/${version}/CHANGELOG.md"; 53 license = licenses.asl20; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}