parent
f269e315ec
commit
74b9066a39
@ -1,48 +0,0 @@ |
||||
{ buildPythonPackage, lib, fetchFromGitLab |
||||
|
||||
, isPy3k, isPyPy |
||||
|
||||
, pyenchant, simplebayes, pillow, pycountry, whoosh, termcolor |
||||
, python-Levenshtein, pygobject3, pyocr, natsort, libinsane |
||||
, distro |
||||
|
||||
, pkgs |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "paperwork-backend"; |
||||
version = "1.3.1"; |
||||
|
||||
src = fetchFromGitLab { |
||||
domain = "gitlab.gnome.org"; |
||||
repo = "paperwork"; |
||||
group = "World"; |
||||
owner = "OpenPaperwork"; |
||||
rev = version; |
||||
sha256 = "1219yz8z4r1yn6miq8zc2z1m1lnhf3dmkhwfw23n05bg842nvg65"; |
||||
}; |
||||
|
||||
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 = [ |
||||
pyenchant simplebayes pillow pycountry whoosh termcolor |
||||
python-Levenshtein libinsane pygobject3 pyocr natsort |
||||
pkgs.poppler_gi pkgs.gtk3 distro |
||||
]; |
||||
|
||||
meta = { |
||||
description = "Backend part of Paperwork (Python API, no UI)"; |
||||
homepage = "https://openpaper.work/"; |
||||
license = lib.licenses.gpl3Plus; |
||||
maintainers = with lib.maintainers; [ aszlig symphorien ]; |
||||
}; |
||||
} |
@ -0,0 +1,42 @@ |
||||
{ buildPythonPackage, lib, fetchFromGitLab |
||||
|
||||
, isPy3k, isPyPy |
||||
|
||||
, distro, setuptools |
||||
|
||||
, pkgs |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "openpaperwork-core"; |
||||
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src; |
||||
|
||||
sourceRoot = "source/openpaperwork-core"; |
||||
|
||||
# Python 2.x is not supported. |
||||
disabled = !isPy3k && !isPyPy; |
||||
|
||||
patchPhase = '' |
||||
echo 'version = "${version}"' > src/openpaperwork_core/_version.py |
||||
chmod a+w -R .. |
||||
patchShebangs ../tools |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ |
||||
distro |
||||
setuptools |
||||
]; |
||||
|
||||
nativeBuildInputs = [ pkgs.gettext pkgs.which ]; |
||||
|
||||
preBuild = '' |
||||
make l10n_compile |
||||
''; |
||||
|
||||
meta = { |
||||
description = "Backend part of Paperwork (Python API, no UI)"; |
||||
homepage = "https://openpaper.work/"; |
||||
license = lib.licenses.gpl3Plus; |
||||
maintainers = with lib.maintainers; [ aszlig symphorien ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ buildPythonPackage |
||||
, lib |
||||
, fetchFromGitLab |
||||
|
||||
, isPy3k |
||||
, isPyPy |
||||
|
||||
, openpaperwork-core |
||||
, pillow |
||||
, pygobject3 |
||||
, distro |
||||
|
||||
, pkgs |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "openpaperwork-gtk"; |
||||
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src; |
||||
|
||||
sourceRoot = "source/openpaperwork-gtk"; |
||||
|
||||
# Python 2.x is not supported. |
||||
disabled = !isPy3k && !isPyPy; |
||||
|
||||
patchPhase = '' |
||||
echo 'version = "${version}"' > src/openpaperwork_gtk/_version.py |
||||
chmod a+w -R .. |
||||
patchShebangs ../tools |
||||
''; |
||||
|
||||
nativeBuildInputs = [ pkgs.gettext pkgs.which ]; |
||||
preBuild = '' |
||||
make l10n_compile |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ |
||||
pillow |
||||
pygobject3 |
||||
pkgs.poppler_gi |
||||
pkgs.gtk3 |
||||
distro |
||||
pkgs.pango |
||||
openpaperwork-core |
||||
]; |
||||
|
||||
meta = { |
||||
description = "Reusable GTK components of Paperwork"; |
||||
homepage = "https://openpaper.work/"; |
||||
license = lib.licenses.gpl3Plus; |
||||
maintainers = with lib.maintainers; [ aszlig symphorien ]; |
||||
}; |
||||
} |
@ -0,0 +1,77 @@ |
||||
{ buildPythonPackage |
||||
, lib |
||||
, fetchFromGitLab |
||||
|
||||
, isPy3k |
||||
, isPyPy |
||||
|
||||
, pyenchant |
||||
, simplebayes |
||||
, pypillowfight |
||||
, pycountry |
||||
, whoosh |
||||
, termcolor |
||||
, python-Levenshtein |
||||
, pygobject3 |
||||
, pyocr |
||||
, natsort |
||||
, libinsane |
||||
, distro |
||||
, openpaperwork-core |
||||
, openpaperwork-gtk |
||||
, psutil |
||||
|
||||
, pkgs |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "paperwork-backend"; |
||||
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src; |
||||
|
||||
sourceRoot = "source/paperwork-backend"; |
||||
|
||||
# Python 2.x is not supported. |
||||
disabled = !isPy3k && !isPyPy; |
||||
|
||||
patchPhase = '' |
||||
echo 'version = "${version}"' > src/paperwork_backend/_version.py |
||||
chmod a+w -R .. |
||||
patchShebangs ../tools |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ |
||||
pyenchant |
||||
simplebayes |
||||
pypillowfight |
||||
pycountry |
||||
whoosh |
||||
termcolor |
||||
python-Levenshtein |
||||
libinsane |
||||
pygobject3 |
||||
pyocr |
||||
natsort |
||||
pkgs.poppler_gi |
||||
pkgs.gtk3 |
||||
distro |
||||
openpaperwork-core |
||||
]; |
||||
|
||||
preCheck = '' |
||||
export HOME=$(mktemp -d) |
||||
''; |
||||
|
||||
nativeBuildInputs = [ pkgs.gettext pkgs.which ]; |
||||
preBuild = '' |
||||
make l10n_compile |
||||
''; |
||||
|
||||
checkInputs = [ openpaperwork-gtk psutil ]; |
||||
|
||||
meta = { |
||||
description = "Backend part of Paperwork (Python API, no UI)"; |
||||
homepage = "https://openpaper.work/"; |
||||
license = lib.licenses.gpl3Plus; |
||||
maintainers = with lib.maintainers; [ aszlig symphorien ]; |
||||
}; |
||||
} |
@ -0,0 +1,59 @@ |
||||
{ buildPythonPackage |
||||
, lib |
||||
, fetchFromGitLab |
||||
|
||||
, isPy3k |
||||
, isPyPy |
||||
|
||||
, openpaperwork-core |
||||
, openpaperwork-gtk |
||||
, paperwork-backend |
||||
, fabulous |
||||
, getkey |
||||
|
||||
, pkgs |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "paperwork-shell"; |
||||
inherit (import ./src.nix { inherit fetchFromGitLab; }) version src; |
||||
|
||||
sourceRoot = "source/paperwork-shell"; |
||||
|
||||
# Python 2.x is not supported. |
||||
disabled = !isPy3k && !isPyPy; |
||||
|
||||
patchPhase = '' |
||||
echo 'version = "${version}"' > src/paperwork_shell/_version.py |
||||
chmod a+w -R .. |
||||
patchShebangs ../tools |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ |
||||
openpaperwork-core |
||||
paperwork-backend |
||||
fabulous |
||||
getkey |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
openpaperwork-gtk |
||||
]; |
||||
|
||||
nativeBuildInputs = [ pkgs.gettext pkgs.which ]; |
||||
preBuild = '' |
||||
make l10n_compile |
||||
''; |
||||
|
||||
preCheck = '' |
||||
export HOME=$(mktemp -d) |
||||
"$out/bin/paperwork-cli" chkdeps |
||||
''; |
||||
|
||||
meta = { |
||||
description = "CLI for Paperwork"; |
||||
homepage = "https://openpaper.work/"; |
||||
license = lib.licenses.gpl3Plus; |
||||
maintainers = with lib.maintainers; [ aszlig symphorien ]; |
||||
}; |
||||
} |
@ -0,0 +1,12 @@ |
||||
{fetchFromGitLab}: |
||||
rec { |
||||
version = "2.0"; |
||||
src = fetchFromGitLab { |
||||
domain = "gitlab.gnome.org"; |
||||
repo = "paperwork"; |
||||
group = "World"; |
||||
owner = "OpenPaperwork"; |
||||
rev = version; |
||||
sha256 = "0879wvl3hk74kwnaa64q6prfg2kjaa7nrzahaw2zcipdpf5h2mkm"; |
||||
}; |
||||
} |
Loading…
Reference in new issue