summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2017-11-09 19:28:47 +0100
committeraszlig <aszlig@nix.build>2017-11-09 19:34:43 +0100
commit8c5a3d86ae8076910fc7cff1cd5efffed7cef77f (patch)
tree66fdbefd1888d78a87316f8b83bc4e0cea750303 /pkgs/top-level
parent35f78e8d1ae7282592163f9372cf8849ee06422b (diff)
downloadnixpkgs-8c5a3d86ae8076910fc7cff1cd5efffed7cef77f.tar
nixpkgs-8c5a3d86ae8076910fc7cff1cd5efffed7cef77f.tar.gz
nixpkgs-8c5a3d86ae8076910fc7cff1cd5efffed7cef77f.tar.bz2
nixpkgs-8c5a3d86ae8076910fc7cff1cd5efffed7cef77f.tar.lz
nixpkgs-8c5a3d86ae8076910fc7cff1cd5efffed7cef77f.tar.xz
nixpkgs-8c5a3d86ae8076910fc7cff1cd5efffed7cef77f.tar.zst
nixpkgs-8c5a3d86ae8076910fc7cff1cd5efffed7cef77f.zip
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>
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/python-packages.nix31
1 files changed, 1 insertions, 30 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index a211ddefe81..922b4b738cb 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -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.
   pants = pkgs.pants;
 
-  paperwork-backend = buildPythonPackage rec {
-    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 ];
-    };
-  };
+  paperwork-backend = callPackage ../applications/office/paperwork/backend.nix { };
 
   pathspec = callPackage ../development/python-modules/pathspec { };