Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatchling 5, bluetooth-data-tools 6, httpx 7, pytest-asyncio 8, pytest-httpx 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "aioruuvigateway"; 14 version = "0.1.0"; 15 format = "pyproject"; 16 17 src = fetchFromGitHub { 18 owner = "akx"; 19 repo = "aioruuvigateway"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-Etv+kPFYEK79hpDeNmDfuyNj1vJ6udry1u+TRO5gLV4="; 22 }; 23 24 nativeBuildInputs = [ 25 hatchling 26 ]; 27 28 propagatedBuildInputs = [ 29 bluetooth-data-tools 30 httpx 31 ]; 32 33 nativeCheckInputs = [ 34 pytest-asyncio 35 pytest-httpx 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "aioruuvigateway" 41 ]; 42 43 meta = with lib; { 44 description = "An asyncio-native library for requesting data from a Ruuvi Gateway"; 45 homepage = "https://github.com/akx/aioruuvigateway"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ hexa ]; 48 }; 49}