summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/dependency-groups/default.nix
blob: 6bfbe3e79977994c432218631635daa4974a53a0 (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
51
52
53
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
  packaging,
  pytestCheckHook,
  tomli,
}:

buildPythonPackage rec {
  pname = "dependency-groups";
  version = "1.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pypa";
    repo = "dependency-groups";
    tag = version;
    hash = "sha256-suuSx3zf0Y45FJdH8Cb6N7hcvPnzleREpHhtdiG2CLg=";
  };

  build-system = [
    flit-core
  ];

  dependencies = [
    packaging
    tomli
  ];

  optional-dependencies = {
    cli = [
      tomli
    ];
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "dependency_groups"
  ];

  meta = {
    description = "A standalone implementation of PEP 735 Dependency Groups";
    homepage = "https://github.com/pypa/dependency-groups";
    changelog = "https://github.com/pypa/dependency-groups/blob/${src.tag}/CHANGELOG.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hexa ];
  };
}