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