11 python3Packages.buildPythonApplication rec {
16 src = fetchFromGitLab {
17 domain = "gitlab.nic.cz";
21 hash = "sha256-VQNUzbWIDo/cbCdtx8JxN5UUMBW3mQ2B42In4b3AA+A=";
24 propagatedBuildInputs = with python3Packages; [
25 # copy&pasted requirements.txt (almost exactly)
26 beautifulsoup4 # upstream version detection
27 blessed # terminal colors
28 build # apkg distribution
29 cached-property # for python <= 3.7; but pip complains even with 3.8
30 click # nice CLI framework
31 distro # current distro detection
33 packaging # version parsing
34 requests # HTTP for humans™
38 nativeBuildInputs = with python3Packages; [ hatchling ];
41 # deps for `srcpkg` operation for other distros; could be optional
53 nativeCheckInputs = with python3Packages; [
59 py.test # inspiration: .gitlab-ci.yml
64 description = "Upstream packaging automation tool";
65 homepage = "https://pkg.labs.nic.cz/pages/apkg";
66 license = licenses.gpl3Plus;
68 maintainers.vcunat # close to upstream