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