1{ lib
2, anyio
3, buildPythonPackage
4, fetchFromGitHub
5, setuptools-scm
6, pytestCheckHook
7, pythonOlder
8, trio
9}:
10
11buildPythonPackage rec {
12 pname = "asyncclick";
13 version = "8.1.3.2";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "python-trio";
19 repo = pname;
20 rev = version;
21 hash = "sha256-by1clF+WAfN/gjOg/F60O1tCZ3qAhWqiiJJY04iMzQ8=";
22 };
23
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
26 nativeBuildInputs = [
27 setuptools-scm
28 ];
29
30 propagatedBuildInputs = [
31 anyio
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 trio
37 ];
38
39 pytestFlagsArray = [
40 "-W" "ignore::trio.TrioDeprecationWarning"
41 ];
42
43 disabledTests = [
44 # RuntimeWarning: coroutine 'Context.invoke' was never awaited
45 "test_context_invoke_type"
46 ];
47
48 pythonImportsCheck = [ "asyncclick" ];
49
50 meta = with lib; {
51 description = "Python composable command line utility";
52 homepage = "https://github.com/python-trio/asyncclick";
53 license = with licenses; [ bsd3 ];
54 maintainers = with maintainers; [ fab ];
55 };
56}