2016-09-26 10:09:25 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages
|
2016-02-26 11:32:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
name = "qnotero-${version}";
|
|
|
|
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smathot";
|
|
|
|
repo = "qnotero";
|
|
|
|
rev = "release/${version}";
|
|
|
|
name = "qnotero-${version}-src";
|
|
|
|
sha256 = "1d5a9k1llzn9q1qv1bfwc7gfflabh4riplz9jj0hf04b279y1bj0";
|
|
|
|
};
|
|
|
|
|
2016-09-26 10:09:25 +01:00
|
|
|
propagatedBuildInputs = [ python3Packages.pyqt4 ];
|
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
|
|
|
|
|
|
|
substituteInPlace ./libqnotero/_themes/default.py \
|
2017-03-03 12:39:52 +00:00
|
|
|
--replace "/usr/share" "$out/usr/share"
|
2016-02-26 11:32:11 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Quick access to Zotero references";
|
|
|
|
homepage = http://www.cogsci.nl/software/qnotero;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.nico202 ];
|
|
|
|
};
|
|
|
|
}
|