2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
2016-02-26 11:32:11 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
2020-02-09 06:40:09 +00:00
|
|
|
pname = "qnotero";
|
2016-02-26 11:32:11 +00:00
|
|
|
|
2021-09-24 04:24:18 +01:00
|
|
|
version = "2.3.0";
|
2016-02-26 11:32:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-09 06:40:09 +00:00
|
|
|
owner = "ealbiter";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-24 04:24:18 +01:00
|
|
|
sha256 = "0y2xph4ha07slni039s034cn1wsk3q2d86hihy97h4ch47ignv20";
|
2016-02-26 11:32:11 +00:00
|
|
|
};
|
|
|
|
|
2020-02-09 06:40:09 +00:00
|
|
|
propagatedBuildInputs = [ python3Packages.pyqt5 wrapQtAppsHook ];
|
2016-02-26 11:32:11 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./setup.py \
|
2017-03-03 12:39:52 +00:00
|
|
|
--replace "/usr/share" "usr/share"
|
2016-02-26 11:32:11 +00:00
|
|
|
|
2020-02-09 06:40:09 +00:00
|
|
|
substituteInPlace ./libqnotero/_themes/light.py \
|
2017-03-03 12:39:52 +00:00
|
|
|
--replace "/usr/share" "$out/usr/share"
|
2016-02-26 11:32:11 +00:00
|
|
|
'';
|
|
|
|
|
2020-02-09 06:40:09 +00:00
|
|
|
preFixup = ''
|
|
|
|
wrapQtApp "$out"/bin/qnotero
|
|
|
|
'';
|
|
|
|
|
2021-01-24 23:56:01 +00:00
|
|
|
# no tests executed
|
|
|
|
doCheck = false;
|
|
|
|
|
2016-02-26 11:32:11 +00:00
|
|
|
meta = {
|
|
|
|
description = "Quick access to Zotero references";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.cogsci.nl/software/qnotero";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.nico202 ];
|
2016-02-26 11:32:11 +00:00
|
|
|
};
|
|
|
|
}
|