Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, httpx 6, protobuf 7, pytest-asyncio 8, pytest-httpx 9, pytest-mock 10, pytestCheckHook 11, pythonOlder 12, setuptools-scm 13, zeroconf 14}: 15 16buildPythonPackage rec { 17 pname = "devolo-plc-api"; 18 version = "1.3.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "2Fake"; 25 repo = "devolo_plc_api"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-ika0mypHo7a8GCa2eNhOLIhMZ2ASwJOxV4mmAzvJm0E="; 28 }; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 httpx 38 protobuf 39 zeroconf 40 ]; 41 42 nativeCheckInputs = [ 43 pytest-asyncio 44 pytest-httpx 45 pytest-mock 46 pytestCheckHook 47 ]; 48 49 pythonImportsCheck = [ 50 "devolo_plc_api" 51 ]; 52 53 meta = with lib; { 54 description = "Module to interact with Devolo PLC devices"; 55 homepage = "https://github.com/2Fake/devolo_plc_api"; 56 changelog = "https://github.com/2Fake/devolo_plc_api/releases/tag/v${version}"; 57 license = licenses.gpl3Only; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}