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