2021-07-24 21:24:34 +01:00
|
|
|
{ fetchFromGitLab
|
2019-01-28 14:51:17 +00:00
|
|
|
, python
|
2021-07-24 21:24:34 +01:00
|
|
|
, lib
|
|
|
|
, apksigner
|
|
|
|
}:
|
2019-01-28 14:51:17 +00:00
|
|
|
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2021-07-22 12:35:20 +01:00
|
|
|
version = "2.0.3";
|
2019-01-28 14:51:17 +00:00
|
|
|
pname = "fdroidserver";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "fdroid";
|
|
|
|
repo = "fdroidserver";
|
|
|
|
rev = version;
|
2021-07-22 12:35:20 +01:00
|
|
|
sha256 = "sha256-/tX45t/DsWd0/R9VJJsqNjoOkgGIvqvq05YaVp0pLf0=";
|
2019-01-28 14:51:17 +00:00
|
|
|
};
|
|
|
|
|
2021-07-22 12:35:20 +01:00
|
|
|
postPatch = ''
|
2019-01-28 14:51:17 +00:00
|
|
|
substituteInPlace fdroidserver/common.py --replace "FDROID_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))" "FDROID_PATH = '$out/bin'"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
${python.interpreter} setup.py compile_catalog
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
2019-10-23 18:09:33 +01:00
|
|
|
patchShebangs gradlew-fdroid
|
2019-01-28 14:51:17 +00:00
|
|
|
install -m 0755 gradlew-fdroid $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ python.pkgs.Babel ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
androguard
|
|
|
|
clint
|
|
|
|
defusedxml
|
|
|
|
GitPython
|
|
|
|
libcloud
|
|
|
|
mwclient
|
|
|
|
paramiko
|
|
|
|
pillow
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
python-vagrant
|
|
|
|
pyyaml
|
|
|
|
qrcode
|
|
|
|
requests
|
2021-11-01 20:59:40 +00:00
|
|
|
ruamel-yaml
|
2021-07-22 12:35:20 +01:00
|
|
|
yamllint
|
2019-01-28 14:51:17 +00:00
|
|
|
];
|
|
|
|
|
2021-07-24 21:24:34 +01:00
|
|
|
makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ apksigner ]}" ];
|
|
|
|
|
2021-01-31 21:54:50 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-07-22 12:35:20 +01:00
|
|
|
pythonImportsCheck = [ "fdroidserver" ];
|
|
|
|
|
2019-01-28 14:51:17 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://f-droid.org";
|
2019-01-28 14:51:17 +00:00
|
|
|
description = "Server and tools for F-Droid, the Free Software repository system for Android";
|
|
|
|
license = licenses.agpl3;
|
2021-07-23 12:35:34 +01:00
|
|
|
maintainers = [ lib.maintainers.obfusk ];
|
2019-01-28 14:51:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|