Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / afsapi / default.nix
blob8d40361c6d06f35335ca7b9c18b5137907f5e6c1
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , lxml
6 , pytest-aiohttp
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools-scm
12 buildPythonPackage rec {
13   pname = "afsapi";
14   version = "0.2.8";
15   format = "setuptools";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "wlcrs";
21     repo = "python-afsapi";
22     rev = "refs/tags/${version}";
23     hash = "sha256-eE5BsXNtSU6YUhRn4/SKpMrqaYf8tyfLKdxxGOmNJ9I=";
24   };
26   SETUPTOOLS_SCM_PRETEND_VERSION = version;
28   nativeBuildInputs = [
29     setuptools-scm
30   ];
32   propagatedBuildInputs = [
33     aiohttp
34     lxml
35   ];
37   nativeCheckInputs = [
38     pytest-aiohttp
39     pytestCheckHook
40   ];
42   pytestFlagsArray = [
43     "async_tests.py"
44   ];
46   pythonImportsCheck = [
47     "afsapi"
48   ];
50   meta = with lib; {
51     description = "Python implementation of the Frontier Silicon API";
52     homepage = "https://github.com/wlcrs/python-afsapi";
53     changelog = "https://github.com/wlcrs/python-afsapi/releases/tag/${version}";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ fab ];
56   };