Merge pull request #254518 from linsui/fdroidserver

fdroidserver: use ruamel.yaml 0.17.21
This commit is contained in:
Atemu 2023-09-11 20:13:28 +02:00 committed by GitHub
commit f9c1b42914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,30 @@
{ lib
, fetchFromGitLab
, python
, fetchPypi
, apksigner
, buildPythonApplication
, python3
, pythonRelaxDepsHook
, androguard
, babel
, clint
, defusedxml
, gitpython
, libcloud
, mwclient
, paramiko
, pillow
, pyasn1
, pyasn1-modules
, python-vagrant
, pyyaml
, qrcode
, requests
, ruamel-yaml
, yamllint
}:
python.pkgs.buildPythonApplication rec {
buildPythonApplication rec {
pname = "fdroidserver";
version = "2.2.1";
format = "setuptools";
@ -27,7 +47,7 @@ python.pkgs.buildPythonApplication rec {
'';
preConfigure = ''
${python.pythonForBuild.interpreter} setup.py compile_catalog
${python3.pythonForBuild.interpreter} setup.py compile_catalog
'';
postInstall = ''
@ -35,15 +55,15 @@ python.pkgs.buildPythonApplication rec {
install -m 0755 gradlew-fdroid $out/bin
'';
nativeBuildInputs = with python.pkgs; [
nativeBuildInputs = [
pythonRelaxDepsHook
];
buildInputs = with python.pkgs; [
buildInputs = [
babel
];
propagatedBuildInputs = with python.pkgs; [
propagatedBuildInputs = [
androguard
clint
defusedxml
@ -58,7 +78,13 @@ python.pkgs.buildPythonApplication rec {
pyyaml
qrcode
requests
ruamel-yaml
(ruamel-yaml.overrideAttrs (old: {
src = fetchPypi {
pname = "ruamel.yaml";
version = "0.17.21";
hash = "sha256-i3zml6LyEnUqNcGsQURx3BbEJMlXO+SSa1b/P10jt68=";
};
}))
yamllint
];
@ -81,7 +107,6 @@ python.pkgs.buildPythonApplication rec {
changelog = "https://github.com/f-droid/fdroidserver/blob/${version}/CHANGELOG.md";
description = "Server and tools for F-Droid, the Free Software repository system for Android";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ obfusk ];
maintainers = with maintainers; [ linsui jugendhacker ];
};
}