1{ lib, buildPythonPackage, fetchPypi, isPy27
2, click
3, click-default-group
4, incremental
5, jinja2
6, pytestCheckHook
7, toml
8, twisted
9, git # shells out to git
10}:
11
12buildPythonPackage rec {
13 pname = "towncrier";
14 version = "19.2.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "15l1gb0hhi9pf3mhhb9vpc93w6w3hrih2ljmzbkgfb3dwqd1l9a8";
19 };
20
21 propagatedBuildInputs = [
22 click
23 click-default-group
24 incremental
25 jinja2
26 toml
27 ];
28
29 # zope.interface collision
30 doCheck = !isPy27;
31 checkInputs = [ git twisted pytestCheckHook ];
32 pythonImportsCheck = [ "towncrier" ];
33
34 meta = with lib; {
35 description = "Utility to produce useful, summarised news files";
36 homepage = "https://github.com/twisted/towncrier/";
37 license = licenses.mit;
38 maintainers = with maintainers; [ ];
39 };
40}