1{
2 lib,
3 buildPythonPackage,
4 colorama,
5 docstring-parser,
6 fetchFromGitHub,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "targ";
13 version = "0.6.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "piccolo-orm";
18 repo = "targ";
19 tag = version;
20 hash = "sha256-myQe8Gpnx5CqKnYNK0PZ2P7o+eVWKLInjyTaZd30WxU=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 colorama
27 docstring-parser
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "targ" ];
33
34 meta = {
35 description = "Python CLI using type hints and docstrings";
36 homepage = "https://github.com/piccolo-orm/targ/";
37 changelog = "https://github.com/piccolo-orm/targ/blob/${src.tag}/CHANGES.rst";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}