1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, lxml 6, pytest-aiohttp 7, pytestCheckHook 8, pythonOlder 9, setuptools-scm 10}: 11 12buildPythonPackage rec { 13 pname = "afsapi"; 14 version = "0.2.7"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "wlcrs"; 21 repo = "python-afsapi"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-TTZk/8mfG5lBr8SyMbqSaYDskWKnUlMkAUp94DXPCKo="; 24 }; 25 26 SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 lxml 35 ]; 36 37 checkInputs = [ 38 pytest-aiohttp 39 pytestCheckHook 40 ]; 41 42 pytestFlagsArray = [ 43 "async_tests.py" 44 ]; 45 46 pythonImportsCheck = [ 47 "afsapi" 48 ]; 49 50 meta = with lib; { 51 description = "Python implementation of the Frontier Silicon API"; 52 homepage = "https://github.com/wlcrs/python-afsapi"; 53 license = licenses.asl20; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}