maestral-qt: (temporarily) override maestral version to fix build error
This commit is contained in:
parent
3b7fa572e6
commit
da4f6c24ae
1 changed files with 26 additions and 6 deletions
|
@ -5,21 +5,41 @@
|
||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
let
|
||||||
|
inherit (pypkgs) makePythonPath;
|
||||||
|
|
||||||
|
pypkgs = (python3.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
# Use last available version of maestral that still supports PyQt5
|
||||||
|
# Remove this override when PyQt6 is available
|
||||||
|
maestral = super.maestral.overridePythonAttrs (old: rec {
|
||||||
|
version = "1.5.3";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "SamSchott";
|
||||||
|
repo = "maestral";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-Uo3vcYez2qSq162SSKjoCkwygwR5awzDceIq8/h3dao=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}).pkgs;
|
||||||
|
|
||||||
|
in
|
||||||
|
pypkgs.buildPythonApplication rec {
|
||||||
pname = "maestral-qt";
|
pname = "maestral-qt";
|
||||||
version = "1.5.3";
|
version = "1.5.3";
|
||||||
disabled = python3.pkgs.pythonOlder "3.6";
|
disabled = pypkgs.pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SamSchott";
|
owner = "SamSchott";
|
||||||
repo = "maestral-qt";
|
repo = "maestral-qt";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-zaG9Zwz9S/SVb7xDa7eXkjLNt1BhA1cQ3I18rVt+8uQ=";
|
sha256 = "sha256-zaG9Zwz9S/SVb7xDa7eXkjLNt1BhA1cQ3I18rVt+8uQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with pypkgs; [
|
||||||
click
|
click
|
||||||
markdown2
|
markdown2
|
||||||
maestral
|
maestral
|
||||||
|
@ -36,8 +56,8 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
"\${qtWrapperArgs[@]}"
|
"\${qtWrapperArgs[@]}"
|
||||||
|
|
||||||
# Add the installed directories to the python path so the daemon can find them
|
# Add the installed directories to the python path so the daemon can find them
|
||||||
"--prefix" "PYTHONPATH" ":" "${lib.concatStringsSep ":" (map (p: p + "/lib/${python3.libPrefix}/site-packages") (python3.pkgs.requiredPythonModules python3.pkgs.maestral.propagatedBuildInputs))}"
|
"--prefix PYTHONPATH : ${makePythonPath (pypkgs.requiredPythonModules pypkgs.maestral.propagatedBuildInputs)}"
|
||||||
"--prefix" "PYTHONPATH" ":" "${python3.pkgs.maestral}/lib/${python3.libPrefix}/site-packages"
|
"--prefix PYTHONPATH : ${makePythonPath [ pypkgs.maestral ]}"
|
||||||
];
|
];
|
||||||
|
|
||||||
# no tests
|
# no tests
|
||||||
|
|
Loading…
Reference in a new issue