depot/third_party/nixpkgs/pkgs/development/python-modules/towncrier/default.nix

61 lines
1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, click
, click-default-group
, incremental
, jinja2
, mock
, pytestCheckHook
, toml
, twisted
, setuptools
, git # shells out to git
}:
buildPythonPackage rec {
pname = "towncrier";
version = "22.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-nEnX519kaprqAq6QTAvBY5yP0UoBKS0rEjuNMHVkA00=";
};
propagatedBuildInputs = [
click
click-default-group
incremental
jinja2
toml
setuptools
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
checkInputs = [
git
mock
twisted
pytestCheckHook
];
pythonImportsCheck = [
"towncrier"
];
meta = with lib; {
description = "Utility to produce useful, summarised news files";
homepage = "https://github.com/twisted/towncrier/";
changelog = "https://github.com/twisted/towncrier/blob/${version}/NEWS.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}