3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/towncrier/default.nix
Fabian Affolter 87c5769aca
python310Packages.towncrier: add changelog to meta
- disable on unsupported Python releases
2022-12-22 21:37:19 +01:00

61 lines
1 KiB
Nix

{ 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; [ ];
};
}