summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/asyncclick/default.nix
blob: 65ea50484bb7b074c8b39cf3f080e507f80e6806 (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
50
{
  lib,
  anyio,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
  pytestCheckHook,
  trio,
}:

buildPythonPackage rec {
  pname = "asyncclick";
  version = "8.1.8.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "python-trio";
    repo = "asyncclick";
    tag = "${version}+async";
    hash = "sha256-J294pYuNOSm7v2BbwDpzn3uelAnZ3ip2U1gWuchhOtA=";
  };

  build-system = [ flit-core ];

  dependencies = [ anyio ];

  nativeCheckInputs = [
    pytestCheckHook
    trio
  ];

  pytestFlags = [
    "-Wignore::trio.TrioDeprecationWarning"
  ];

  disabledTests = [
    # AttributeError: 'Context' object has no attribute '_ctx_mgr'
    "test_context_pushing"
  ];

  pythonImportsCheck = [ "asyncclick" ];

  meta = {
    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 = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ fab ];
  };
}