about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/argparse-dataclass/default.nix
blob: e0fbcd842b80746b6b8da9a4e34728f1cd1a530d (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "argparse-dataclass";
  version = "2.0.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "mivade";
    repo = "argparse_dataclass";
    rev = "refs/tags/${version}";
    hash = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "argparse_dataclass"
  ];

  meta = with lib; {
    description = "Declarative CLIs with argparse and dataclasses";
    homepage = "https://github.com/mivade/argparse_dataclass";
    changelog = "https://github.com/mivade/argparse_dataclass/blob/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ tm-drtina ];
  };
}