59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromSourcehut,
|
|
docutils,
|
|
semver,
|
|
setuptools,
|
|
coverage,
|
|
testscenarios,
|
|
testtools,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "changelog-chug";
|
|
version = "0.0.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~bignose";
|
|
repo = "changelog-chug";
|
|
rev = "release/${version}";
|
|
hash = "sha256-SPwFkmRQMpdsVmzZE4mB2J9wsfvE1K21QDkOQ2XPlow=";
|
|
# HACK: sourcehut can't generate tarballs from tags with slashes properly,
|
|
# so force using git clone.
|
|
# See: https://todo.sr.ht/~sircmpwn/git.sr.ht/323
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
build-system = [
|
|
docutils
|
|
semver
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
docutils
|
|
semver
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
coverage
|
|
testscenarios
|
|
testtools
|
|
unittestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"chug"
|
|
];
|
|
|
|
meta = {
|
|
description = "Changelog document parser";
|
|
homepage = "https://git.sr.ht/~bignose/changelog-chug";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = [ ];
|
|
};
|
|
}
|