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