2021-08-05 21:33:18 +00:00
|
|
|
{ fetchFromGitLab
|
2020-04-24 23:36:52 +00:00
|
|
|
, python
|
2021-08-05 21:33:18 +00:00
|
|
|
, lib
|
|
|
|
, apksigner
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2021-07-24 12:14:16 +00:00
|
|
|
version = "2.0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "fdroidserver";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "fdroid";
|
|
|
|
repo = "fdroidserver";
|
|
|
|
rev = version;
|
2021-07-24 12:14:16 +00:00
|
|
|
sha256 = "sha256-/tX45t/DsWd0/R9VJJsqNjoOkgGIvqvq05YaVp0pLf0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +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 = ''
|
2020-11-30 08:33:03 +00:00
|
|
|
patchShebangs gradlew-fdroid
|
2020-04-24 23:36:52 +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-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2021-07-24 12:14:16 +00:00
|
|
|
yamllint
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ apksigner ]}" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
pythonImportsCheck = [ "fdroidserver" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://f-droid.org";
|
|
|
|
description = "Server and tools for F-Droid, the Free Software repository system for Android";
|
|
|
|
license = licenses.agpl3;
|
2021-07-24 12:14:16 +00:00
|
|
|
maintainers = [ lib.maintainers.obfusk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|