Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchPypi,
|
|
pandoc,
|
|
git,
|
|
scriv,
|
|
testers,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "scriv";
|
|
version = "1.7.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fBqL5jUdA2kuXnV4Te6g2PEbLJD5G+GLD7OjdVVbUl4=";
|
|
};
|
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
dependencies =
|
|
with python3.pkgs;
|
|
[
|
|
attrs
|
|
click
|
|
click-log
|
|
jinja2
|
|
markdown-it-py
|
|
requests
|
|
]
|
|
++ lib.optionals (python3.pythonOlder "3.11") [
|
|
tomli
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
coverage
|
|
freezegun
|
|
pudb
|
|
pytest-mock
|
|
responses
|
|
pyyaml
|
|
|
|
pandoc
|
|
git
|
|
];
|
|
disabledTests = [
|
|
# assumes we have checked out the full repo (including remotes)
|
|
"test_real_get_github_repos"
|
|
# test fails due to a pandoc bug (fixed in pandoc 3.6.4)
|
|
"test_convert_to_markdown"
|
|
];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion { package = scriv; };
|
|
};
|
|
|
|
meta = {
|
|
description = "Command-line tool for helping developers maintain useful changelogs";
|
|
homepage = "https://github.com/nedbat/scriv";
|
|
changelog = "https://github.com/nedbat/scriv/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ amesgen ];
|
|
mainProgram = "scriv";
|
|
};
|
|
}
|