nixpkgs/pkgs/by-name/sc/scriv/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.2 KiB
Nix
Raw Normal View History

2023-01-25 12:41:10 +00:00
{ lib
, python3
, fetchPypi
, pandoc
, git
, scriv
, testers
}:
python3.pkgs.buildPythonApplication rec {
pname = "scriv";
2024-01-12 09:32:34 +00:00
version = "1.5.1";
2023-01-25 12:41:10 +00:00
src = fetchPypi {
inherit pname version;
2024-01-12 09:32:34 +00:00
hash = "sha256-MK6f+NFE+ODPOUxOHTeVQvGzgjdnZClVtU7EDcALMrY=";
2023-01-25 12:41:10 +00:00
};
propagatedBuildInputs = with python3.pkgs; [
attrs
click
click-log
jinja2
2023-11-09 16:27:19 +00:00
markdown-it-py
2023-01-25 12:41:10 +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 = {
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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "scriv";
2023-01-25 12:41:10 +00:00
};
}