2020-02-09 07:40:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages, wrapQtAppsHook }:
|
2016-02-26 12:32:11 +01:00
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
2020-02-09 07:40:09 +01:00
|
|
|
pname = "qnotero";
|
2016-02-26 12:32:11 +01:00
|
|
|
|
2020-02-09 07:40:09 +01:00
|
|
|
version = "2.1.1";
|
2016-02-26 12:32:11 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-09 07:40:09 +01:00
|
|
|
owner = "ealbiter";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "16ckcjxa3dgmz1y8gd57q2h84akra3j4bgl4fwv4m05bam3ml1xs";
|
2016-02-26 12:32:11 +01:00
|
|
|
};
|
|
|
|
|
2020-02-09 07:40:09 +01:00
|
|
|
propagatedBuildInputs = [ python3Packages.pyqt5 wrapQtAppsHook ];
|
2016-02-26 12:32:11 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./setup.py \
|
2017-03-03 13:39:52 +01:00
|
|
|
--replace "/usr/share" "usr/share"
|
2016-02-26 12:32:11 +01:00
|
|
|
|
2020-02-09 07:40:09 +01:00
|
|
|
substituteInPlace ./libqnotero/_themes/light.py \
|
2017-03-03 13:39:52 +01:00
|
|
|
--replace "/usr/share" "$out/usr/share"
|
2016-02-26 12:32:11 +01:00
|
|
|
'';
|
|
|
|
|
2020-02-09 07:40:09 +01:00
|
|
|
preFixup = ''
|
|
|
|
wrapQtApp "$out"/bin/qnotero
|
|
|
|
'';
|
|
|
|
|
2016-02-26 12:32:11 +01:00
|
|
|
meta = {
|
|
|
|
description = "Quick access to Zotero references";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.cogsci.nl/software/qnotero";
|
2016-02-26 12:32:11 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-02-26 12:32:11 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.nico202 ];
|
|
|
|
};
|
|
|
|
}
|