Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.2 kB view raw
1{ lib 2, aiohttp 3, attrs 4, backoff 5, boto3 6, buildPythonPackage 7, fetchFromGitHub 8, poetry-core 9, pyhumps 10, pytest-asyncio 11, pytestCheckHook 12, pythonOlder 13, warrant-lite 14}: 15 16buildPythonPackage rec { 17 pname = "pyoverkiz"; 18 version = "1.8.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "iMicknl"; 25 repo = "python-overkiz-api"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-Mo28QpPJqfzzb/bq4W+OUcyptWCaLJSon99VdJ9Ss80="; 28 }; 29 30 postPatch = '' 31 substituteInPlace pyproject.toml \ 32 --replace 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"' 33 ''; 34 35 nativeBuildInputs = [ 36 poetry-core 37 ]; 38 39 propagatedBuildInputs = [ 40 attrs 41 aiohttp 42 backoff 43 pyhumps 44 boto3 45 warrant-lite 46 ]; 47 48 nativeCheckInputs = [ 49 pytest-asyncio 50 pytestCheckHook 51 ]; 52 53 pythonImportsCheck = [ 54 "pyoverkiz" 55 ]; 56 57 meta = with lib; { 58 description = "Module to interact with the Somfy TaHoma API or other OverKiz APIs"; 59 homepage = "https://github.com/iMicknl/python-overkiz-api"; 60 changelog = "https://github.com/iMicknl/python-overkiz-api/releases/tag/v${version}"; 61 license = with licenses; [ mit ]; 62 maintainers = with maintainers; [ fab ]; 63 }; 64}