blob: 9e5b82197efbd2cea07bb97bab5ea84b540e1d34 (
plain) (
blame)
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
50
51
52
53
54
|
{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
pytestCheckHook,
pythonOlder,
trio,
}:
buildPythonPackage rec {
pname = "asyncclick";
version = "8.1.7.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "python-trio";
repo = "asyncclick";
rev = "refs/tags/${version}";
hash = "sha256-ahzI7yILq1OpZ6IT0qt8vjzi6I6zAoTrULOl8CqRw4A=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ anyio ];
nativeCheckInputs = [
pytestCheckHook
trio
];
pytestFlagsArray = [
"-W"
"ignore::trio.TrioDeprecationWarning"
];
disabledTests = [
# AttributeError: 'Context' object has no attribute '_ctx_mgr'
"test_context_pushing"
];
pythonImportsCheck = [ "asyncclick" ];
meta = with lib; {
description = "Python composable command line utility";
homepage = "https://github.com/python-trio/asyncclick";
changelog = "https://github.com/python-trio/asyncclick/blob/${version}/CHANGES.rst";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}
|