apkg: 0.4.0 -> 0.4.1
https://apkg.readthedocs.io/en/latest/news/#apkg-041
This commit is contained in:
parent
acf7891bf8
commit
2e1db341fc
1 changed files with 8 additions and 17 deletions
|
@ -4,47 +4,38 @@
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "apkg";
|
pname = "apkg";
|
||||||
version = "0.4.0";
|
version = "0.4.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.nic.cz";
|
domain = "gitlab.nic.cz";
|
||||||
owner = "packaging";
|
owner = "packaging";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "duZz2Kwjgek5pMJTDH8gMZAZ13uFwaIYT5E1brW7I7U=";
|
sha256 = "x7UYkqkF1XJ3OMfQpIQ4+27KI0dLvL42Wms5xQTY/H4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: solve this properly. Detection won't work anymore.
|
|
||||||
postPatch = ''
|
|
||||||
patch <<-EOF
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -25,1 +25,1 @@
|
|
||||||
- version=version,
|
|
||||||
+ version='${version}',
|
|
||||||
EOF
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
# copy&pasted requirements.txt (almost exactly)
|
# copy&pasted requirements.txt (almost exactly)
|
||||||
beautifulsoup4 # upstream version detection
|
beautifulsoup4 # upstream version detection
|
||||||
blessings # terminal colors
|
blessed # terminal colors
|
||||||
build # apkg distribution
|
build # apkg distribution
|
||||||
cached-property # @cached_property for python <= 3.7
|
cached-property # for python <= 3.7; but pip complains even with 3.8
|
||||||
click # nice CLI framework
|
click # nice CLI framework
|
||||||
distro # current distro detection
|
distro # current distro detection
|
||||||
jinja2 # templating
|
jinja2 # templating
|
||||||
packaging # version parsing
|
packaging # version parsing
|
||||||
requests # HTTP for humans™
|
requests # HTTP for humans™
|
||||||
setuptools # required by minver
|
|
||||||
toml # config files
|
toml # config files
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3Packages; [ hatchling ];
|
||||||
|
|
||||||
makeWrapperArgs = [ # deps for `srcpkg` operation for other distros; could be optional
|
makeWrapperArgs = [ # deps for `srcpkg` operation for other distros; could be optional
|
||||||
"--prefix" "PATH" ":" (lib.makeBinPath [ gitMinimal rpm dpkg fakeroot ])
|
"--prefix" "PATH" ":" (lib.makeBinPath [ gitMinimal rpm dpkg fakeroot ])
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python3Packages; [ pytest ];
|
nativeCheckInputs = with python3Packages; [ pytest dunamai ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
py.test # inspiration: .gitlab-ci.yml
|
py.test # inspiration: .gitlab-ci.yml
|
||||||
|
|
Loading…
Reference in a new issue