33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
60 lines
1 KiB
Nix
60 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
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
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; [ ];
|
|
};
|
|
}
|