1{ lib 2, aiohttp 3, aioresponses 4, asynccmd 5, buildPythonPackage 6, fetchFromGitHub 7, poetry-core 8, pytest-asyncio 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "pyspcwebgw"; 15 version = "0.7.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "mbrrg"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-gdIrbr25GXaX26B1f7u0NKbqqnAC2tmMFZspzW6I4HI="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 asynccmd 33 aiohttp 34 ]; 35 36 nativeCheckInputs = [ 37 aioresponses 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pytestFlagsArray = [ 43 "--asyncio-mode=auto" 44 ]; 45 46 pythonImportsCheck = [ "pyspcwebgw" ]; 47 48 meta = with lib; { 49 description = "Python module for the SPC Web Gateway REST API"; 50 homepage = "https://github.com/mbrrg/pyspcwebgw"; 51 changelog = "https://github.com/pyspcwebgw/pyspcwebgw/releases/tag/v${version}"; 52 license = with licenses; [ mit ]; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}