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