nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 lxml, 7 pytest-aiohttp, 8 pytestCheckHook, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "afsapi"; 14 version = "0.2.8"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "wlcrs"; 19 repo = "python-afsapi"; 20 tag = version; 21 hash = "sha256-eE5BsXNtSU6YUhRn4/SKpMrqaYf8tyfLKdxxGOmNJ9I="; 22 }; 23 24 nativeBuildInputs = [ setuptools-scm ]; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 lxml 29 ]; 30 31 doCheck = false; # Failed: async def functions are not natively supported. 32 33 nativeCheckInputs = [ 34 pytest-aiohttp 35 pytestCheckHook 36 ]; 37 38 enabledTestPaths = [ "async_tests.py" ]; 39 40 pythonImportsCheck = [ "afsapi" ]; 41 42 meta = { 43 description = "Python implementation of the Frontier Silicon API"; 44 homepage = "https://github.com/wlcrs/python-afsapi"; 45 changelog = "https://github.com/wlcrs/python-afsapi/releases/tag/${version}"; 46 license = lib.licenses.asl20; 47 maintainers = with lib.maintainers; [ fab ]; 48 }; 49}