blob: abc6c0746cec55ab7e32d2df904063b8a835cd42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lxml,
pytest-aiohttp,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "afsapi";
version = "0.2.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "wlcrs";
repo = "python-afsapi";
tag = version;
hash = "sha256-eE5BsXNtSU6YUhRn4/SKpMrqaYf8tyfLKdxxGOmNJ9I=";
};
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 ];
};
}
|