1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 packaging,
7 pytestCheckHook,
8 tomli,
9}:
10
11buildPythonPackage rec {
12 pname = "dependency-groups";
13 version = "1.3.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pypa";
18 repo = "dependency-groups";
19 tag = version;
20 hash = "sha256-suuSx3zf0Y45FJdH8Cb6N7hcvPnzleREpHhtdiG2CLg=";
21 };
22
23 build-system = [
24 flit-core
25 ];
26
27 dependencies = [
28 packaging
29 tomli
30 ];
31
32 optional-dependencies = {
33 cli = [
34 tomli
35 ];
36 };
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "dependency_groups"
44 ];
45
46 meta = {
47 description = "A standalone implementation of PEP 735 Dependency Groups";
48 homepage = "https://github.com/pypa/dependency-groups";
49 changelog = "https://github.com/pypa/dependency-groups/blob/${src.tag}/CHANGELOG.rst";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ hexa ];
52 };
53}