fdroidserver: rename GitPython

This commit is contained in:
Fabian Affolter 2022-12-05 22:10:25 +01:00
parent 2c61d89177
commit 91b4118cd4

View file

@ -1,12 +1,12 @@
{ fetchFromGitLab { lib
, fetchFromGitLab
, python , python
, lib
, apksigner , apksigner
}: }:
python.pkgs.buildPythonApplication rec { python.pkgs.buildPythonApplication rec {
version = "2.1.1";
pname = "fdroidserver"; pname = "fdroidserver";
version = "2.1.1";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "fdroid"; owner = "fdroid";
@ -16,24 +16,28 @@ python.pkgs.buildPythonApplication rec {
}; };
postPatch = '' postPatch = ''
substituteInPlace fdroidserver/common.py --replace "FDROID_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))" "FDROID_PATH = '$out/bin'" substituteInPlace fdroidserver/common.py \
--replace "FDROID_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))" "FDROID_PATH = '$out/bin'"
''; '';
preConfigure = '' preConfigure = ''
${python.interpreter} setup.py compile_catalog ${python.interpreter} setup.py compile_catalog
''; '';
postInstall = '' postInstall = ''
patchShebangs gradlew-fdroid patchShebangs gradlew-fdroid
install -m 0755 gradlew-fdroid $out/bin install -m 0755 gradlew-fdroid $out/bin
''; '';
buildInputs = [ python.pkgs.babel ]; buildInputs = with python.pkgs; [
babel
];
propagatedBuildInputs = with python.pkgs; [ propagatedBuildInputs = with python.pkgs; [
androguard androguard
clint clint
defusedxml defusedxml
GitPython gitpython
libcloud libcloud
mwclient mwclient
paramiko paramiko
@ -59,7 +63,7 @@ python.pkgs.buildPythonApplication rec {
homepage = "https://f-droid.org"; homepage = "https://f-droid.org";
description = "Server and tools for F-Droid, the Free Software repository system for Android"; description = "Server and tools for F-Droid, the Free Software repository system for Android";
license = licenses.agpl3; license = licenses.agpl3;
maintainers = [ lib.maintainers.obfusk ]; maintainers = with maintainers; [ obfusk ];
}; };
} }