mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
paperwork: 1.2.2 -> 1.2.4
This commit is contained in:
parent
c3612b97e6
commit
f4039397f6
@ -1,4 +1,4 @@
|
||||
{ buildPythonPackage, lib, fetchFromGitHub
|
||||
{ buildPythonPackage, lib, fetchFromGitLab
|
||||
|
||||
, isPy3k, isPyPy
|
||||
|
||||
@ -10,18 +10,26 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paperwork-backend";
|
||||
version = "1.2.2";
|
||||
version = "1.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openpaperwork";
|
||||
repo = "paperwork-backend";
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.gnome.org";
|
||||
repo = "paperwork";
|
||||
group = "World";
|
||||
owner = "OpenPaperwork";
|
||||
rev = version;
|
||||
sha256 = "1rvf06vphm32601ja1bfkfkfpgjxiv0lh4yxjy31jll0bfnsf7pf";
|
||||
sha256 = "0wjjiw99aswmppnhzq3jir0p5p78r3m8hjinhdirkgm6h7skq5p4";
|
||||
};
|
||||
|
||||
sourceRoot = "source/paperwork-backend";
|
||||
|
||||
# Python 2.x is not supported.
|
||||
disabled = !isPy3k && !isPyPy;
|
||||
|
||||
patchPhase = ''
|
||||
echo 'version = "${version}"' > paperwork_backend/_version.py
|
||||
'';
|
||||
|
||||
preCheck = "\"$out/bin/paperwork-shell\" chkdeps paperwork_backend";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -1,20 +1,14 @@
|
||||
{ lib, python3Packages, fetchFromGitHub, gtk3, cairo
|
||||
{ lib, python3Packages, fetchFromGitLab, gtk3, cairo
|
||||
, aspellDicts, buildEnv
|
||||
, gnome3, hicolor-icon-theme, librsvg
|
||||
, xvfb_run, dbus, libnotify
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
inherit (python3Packages.paperwork-backend) version src;
|
||||
name = "paperwork-${version}";
|
||||
# Don't forget to also update paperwork-backend when updating this!
|
||||
version = "1.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "paperwork";
|
||||
owner = "openpaperwork";
|
||||
rev = version;
|
||||
sha256 = "1nb5sna2s952xb7c89qccg9qp693pyqj8g7xz16ll16ydfqnzsdk";
|
||||
};
|
||||
sourceRoot = "source/paperwork-gtk";
|
||||
|
||||
# Patch out a few paths that assume that we're using the FHS:
|
||||
postPatch = ''
|
||||
@ -39,6 +33,12 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
sed -i -e 's/"logo"/"logo-icon-name"/g' \
|
||||
src/paperwork/frontend/aboutdialog/aboutdialog.glade
|
||||
|
||||
cat - ../AUTHORS.py > src/paperwork/_version.py <<EOF
|
||||
# -*- coding: utf-8 -*-
|
||||
version = "${version}"
|
||||
authors_code=""
|
||||
EOF
|
||||
'';
|
||||
|
||||
ASPELL_CONF = "dict-dir ${buildEnv {
|
||||
|
Loading…
Reference in New Issue
Block a user