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