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