1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, click
6, click-default-group
7, incremental
8, jinja2
9, mock
10, pytestCheckHook
11, toml
12, twisted
13, setuptools
14, git # shells out to git
15}:
16
17buildPythonPackage rec {
18 pname = "towncrier";
19 version = "22.12.0";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-nEnX519kaprqAq6QTAvBY5yP0UoBKS0rEjuNMHVkA00=";
27 };
28
29 propagatedBuildInputs = [
30 click
31 click-default-group
32 incremental
33 jinja2
34 toml
35 setuptools
36 ];
37
38 preCheck = ''
39 export PATH=$out/bin:$PATH
40 '';
41
42 nativeCheckInputs = [
43 git
44 mock
45 twisted
46 pytestCheckHook
47 ];
48
49 pythonImportsCheck = [
50 "towncrier"
51 ];
52
53 meta = with lib; {
54 description = "Utility to produce useful, summarised news files";
55 homepage = "https://github.com/twisted/towncrier/";
56 changelog = "https://github.com/twisted/towncrier/blob/${version}/NEWS.rst";
57 license = licenses.mit;
58 maintainers = with maintainers; [ ];
59 };
60}