summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/targ/default.nix
blob: 1e56fa49d012b7ddcb94ff166c24c1bbe945e9b5 (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
{
  lib,
  buildPythonPackage,
  colorama,
  docstring-parser,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "targ";
  version = "0.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "piccolo-orm";
    repo = "targ";
    tag = version;
    hash = "sha256-myQe8Gpnx5CqKnYNK0PZ2P7o+eVWKLInjyTaZd30WxU=";
  };

  build-system = [ setuptools ];

  dependencies = [
    colorama
    docstring-parser
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "targ" ];

  meta = {
    description = "Python CLI using type hints and docstrings";
    homepage = "https://github.com/piccolo-orm/targ/";
    changelog = "https://github.com/piccolo-orm/targ/blob/${src.tag}/CHANGES.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}