a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
39 lines
946 B
Nix
39 lines
946 B
Nix
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "qnotero";
|
|
|
|
version = "2.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ealbiter";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-Rym7neluRbYCpuezRQyLc6gSl3xbVR9fvhOxxW5+Nzo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ python3Packages.pyqt5 wrapQtAppsHook ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace ./setup.py \
|
|
--replace "/usr/share" "usr/share"
|
|
|
|
substituteInPlace ./libqnotero/_themes/light.py \
|
|
--replace "/usr/share" "$out/usr/share"
|
|
'';
|
|
|
|
preFixup = ''
|
|
wrapQtApp "$out"/bin/qnotero
|
|
'';
|
|
|
|
# no tests executed
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Quick access to Zotero references";
|
|
homepage = "https://www.cogsci.nl/software/qnotero";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.nico202 ];
|
|
};
|
|
}
|