Fabian Affolter 2023-05-16 09:40:36 +02:00
parent b59d345f0b
commit b70ddf1272

View file

@ -6,15 +6,21 @@
python.pkgs.buildPythonApplication rec { python.pkgs.buildPythonApplication rec {
pname = "fdroidserver"; pname = "fdroidserver";
version = "2.1.1"; version = "2.2.1";
format = "setuptools";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "fdroid"; owner = "fdroid";
repo = "fdroidserver"; repo = "fdroidserver";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "0qg4vxjcgm05dqk3kyj8lry9wh5bxy0qwz70fiyxb5bi1kwai9ss"; sha256 = "sha256-+Y1YTgELsX834WIrhx/NX34yLMHdkKM+YUNvnHPiC/s=";
}; };
pythonRelaxDeps = [
"pyasn1"
"pyasn1-modules"
];
postPatch = '' postPatch = ''
substituteInPlace fdroidserver/common.py \ substituteInPlace fdroidserver/common.py \
--replace "FDROID_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))" "FDROID_PATH = '$out/bin'" --replace "FDROID_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))" "FDROID_PATH = '$out/bin'"
@ -29,6 +35,10 @@ python.pkgs.buildPythonApplication rec {
install -m 0755 gradlew-fdroid $out/bin install -m 0755 gradlew-fdroid $out/bin
''; '';
nativeBuildInputs = with python.pkgs; [
pythonRelaxDepsHook
];
buildInputs = with python.pkgs; [ buildInputs = with python.pkgs; [
babel babel
]; ];
@ -52,7 +62,12 @@ python.pkgs.buildPythonApplication rec {
yamllint yamllint
]; ];
makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ apksigner ]}" ]; makeWrapperArgs = [
"--prefix"
"PATH"
":"
"${lib.makeBinPath [ apksigner ]}"
];
# no tests # no tests
doCheck = false; doCheck = false;