mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
paperwork-backend: Move into its own file
This package is most likely only used by Paperwork and thus it makes sense to put it next to the main expression of Paperwork. No functional changes here, evaluating before this commit and afterwards leads to the same derivation hash. Signed-off-by: aszlig <aszlig@nix.build>
This commit is contained in:
parent
35f78e8d1a
commit
8c5a3d86ae
39
pkgs/applications/office/paperwork/backend.nix
Normal file
39
pkgs/applications/office/paperwork/backend.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ buildPythonPackage, lib, fetchFromGitHub
|
||||||
|
|
||||||
|
, isPy3k, isPyPy
|
||||||
|
|
||||||
|
, pyenchant, simplebayes, pillow, pycountry, whoosh, termcolor
|
||||||
|
, python-Levenshtein, pyinsane2, pygobject3, pyocr, natsort
|
||||||
|
|
||||||
|
, pkgs
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
name = "paperwork-backend-${version}";
|
||||||
|
version = "1.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "openpaperwork";
|
||||||
|
repo = "paperwork-backend";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1lrawibm6jnykj1bkrl8196kcxrhndzp7r0brdrb4hs54gql7j5x";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Python 2.x is not supported.
|
||||||
|
disabled = !isPy3k && !isPyPy;
|
||||||
|
|
||||||
|
preCheck = "\"$out/bin/paperwork-shell\" chkdeps paperwork_backend";
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyenchant simplebayes pillow pycountry whoosh termcolor
|
||||||
|
python-Levenshtein pyinsane2 pygobject3 pyocr natsort
|
||||||
|
pkgs.poppler_gi pkgs.gtk3
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Backend part of Paperwork (Python API, no UI)";
|
||||||
|
homepage = https://openpaper.work/;
|
||||||
|
license = lib.licenses.gpl3Plus;
|
||||||
|
maintainers = [ lib.maintainers.aszlig ];
|
||||||
|
};
|
||||||
|
}
|
@ -6495,36 +6495,7 @@ in {
|
|||||||
# These used to be here but were moved to all-packages, but I'll leave them around for a while.
|
# These used to be here but were moved to all-packages, but I'll leave them around for a while.
|
||||||
pants = pkgs.pants;
|
pants = pkgs.pants;
|
||||||
|
|
||||||
paperwork-backend = buildPythonPackage rec {
|
paperwork-backend = callPackage ../applications/office/paperwork/backend.nix { };
|
||||||
name = "paperwork-backend-${version}";
|
|
||||||
version = "1.2.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "openpaperwork";
|
|
||||||
repo = "paperwork-backend";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "1lrawibm6jnykj1bkrl8196kcxrhndzp7r0brdrb4hs54gql7j5x";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Python 2.x is not supported.
|
|
||||||
disabled = !isPy3k && !isPyPy;
|
|
||||||
|
|
||||||
preCheck = "\"$out/bin/paperwork-shell\" chkdeps paperwork_backend";
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [
|
|
||||||
pyenchant simplebayes pillow pycountry whoosh termcolor
|
|
||||||
python-Levenshtein pyinsane2 pygobject3 pyocr
|
|
||||||
pkgs.poppler_gi pkgs.gtk3
|
|
||||||
natsort
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Backend part of Paperwork (Python API, no UI)";
|
|
||||||
homepage = https://openpaper.work/;
|
|
||||||
license = licenses.gpl3Plus;
|
|
||||||
maintainers = [ maintainers.aszlig ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pathspec = callPackage ../development/python-modules/pathspec { };
|
pathspec = callPackage ../development/python-modules/pathspec { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user