1 { lib, fetchFromGitLab, python3Packages
2 , gitMinimal, rpm, dpkg, fakeroot
5 python3Packages.buildPythonApplication rec {
9 src = fetchFromGitLab {
10 domain = "gitlab.nic.cz";
14 sha256 = "duZz2Kwjgek5pMJTDH8gMZAZ13uFwaIYT5E1brW7I7U=";
17 propagatedBuildInputs = with python3Packages; [
18 # copy&pasted requirements.txt (almost exactly)
19 beautifulsoup4 # upstream version detection
20 blessings # terminal colors
21 build # apkg distribution
22 cached-property # @cached_property for python <= 3.7
23 click # nice CLI framework
24 distro # current distro detection
26 packaging # version parsing
27 requests # HTTP for humans™
28 setuptools # required by minver
32 makeWrapperArgs = [ # deps for `srcpkg` operation for other distros; could be optional
33 "--prefix" "PATH" ":" (lib.makeBinPath [ gitMinimal rpm dpkg fakeroot ])
36 checkInputs = with python3Packages; [ pytest ];
39 py.test # inspiration: .gitlab-ci.yml
44 description = "Upstream packaging automation tool";
45 homepage = "https://pkg.labs.nic.cz/pages/apkg";
46 license = licenses.gpl3Plus;
47 maintainers = [ maintainers.vcunat /* close to upstream */ ];