1{ 2 lib, 3 buildPythonPackage, 4 fetchFromSourcehut, 5 docutils, 6 semver, 7 setuptools, 8 coverage, 9 testscenarios, 10 testtools, 11 unittestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "changelog-chug"; 16 version = "0.0.3"; 17 pyproject = true; 18 19 src = fetchFromSourcehut { 20 owner = "~bignose"; 21 repo = "changelog-chug"; 22 rev = "release/${version}"; 23 hash = "sha256-SPwFkmRQMpdsVmzZE4mB2J9wsfvE1K21QDkOQ2XPlow="; 24 # HACK: sourcehut can't generate tarballs from tags with slashes properly, 25 # so force using git clone. 26 # See: https://todo.sr.ht/~sircmpwn/git.sr.ht/323 27 fetchSubmodules = true; 28 }; 29 30 build-system = [ 31 docutils 32 semver 33 setuptools 34 ]; 35 36 dependencies = [ 37 docutils 38 semver 39 ]; 40 41 nativeCheckInputs = [ 42 coverage 43 testscenarios 44 testtools 45 unittestCheckHook 46 ]; 47 48 pythonImportsCheck = [ 49 "chug" 50 ]; 51 52 meta = { 53 description = "Changelog document parser"; 54 homepage = "https://git.sr.ht/~bignose/changelog-chug"; 55 license = lib.licenses.agpl3Only; 56 maintainers = with lib.maintainers; [ ]; 57 }; 58}