Something went wrong. Try again.
lol
Something went wrong. Try again.
1.0 kB · 49 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, lxml, pytest-aiohttp, pytestCheckHook, setuptools-scm,}:
buildPythonPackage rec { pname = "afsapi"; version = "0.3.1"; format = "setuptools";
src = fetchFromGitHub { owner = "wlcrs"; repo = "python-afsapi"; tag = version; hash = "sha256-WkkRsXRJ4i3lUn3X94YX7ZqfaKE2GgrBycbflnnlC74="; };
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ aiohttp lxml ];
doCheck = false; # Failed: async def functions are not natively supported.
nativeCheckInputs = [ pytest-aiohttp pytestCheckHook ];
enabledTestPaths = [ "async_tests.py" ];
pythonImportsCheck = [ "afsapi" ];
meta = { description = "Python implementation of the Frontier Silicon API"; homepage = "https://github.com/wlcrs/python-afsapi"; changelog = "https://github.com/wlcrs/python-afsapi/releases/tag/${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; };}