2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchPypi
|
|
|
|
, pandoc
|
|
|
|
, git
|
|
|
|
, scriv
|
|
|
|
, testers
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "scriv";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.5.1";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-MK6f+NFE+ODPOUxOHTeVQvGzgjdnZClVtU7EDcALMrY=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
click-log
|
|
|
|
jinja2
|
2024-01-02 11:29:13 +00:00
|
|
|
markdown-it-py
|
2023-02-09 11:40:11 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion { package = scriv; };
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command-line tool for helping developers maintain useful changelogs";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/nedbat/scriv";
|
|
|
|
changelog = "https://github.com/nedbat/scriv/releases/tag/${version}";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ amesgen ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "scriv";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
}
|