diff options
author | Guillaume Girol <symphorien+git@xlumurb.eu> | 2023-03-04 12:00:00 +0000 |
---|---|---|
committer | Guillaume Girol <symphorien+git@xlumurb.eu> | 2023-10-22 14:11:39 +0200 |
commit | f32a622d3a3d55ce0c466bfd9c40649b6ee348cf (patch) | |
tree | 05bf4a95ab1e273d0353d26fb3b3501e54bcac58 /pkgs/applications/office/paperwork/paperwork-backend.nix | |
parent | 51d906d2341c9e866e48c2efcaac0f2d70bfd43e (diff) | |
download | nixpkgs-f32a622d3a3d55ce0c466bfd9c40649b6ee348cf.tar nixpkgs-f32a622d3a3d55ce0c466bfd9c40649b6ee348cf.tar.gz nixpkgs-f32a622d3a3d55ce0c466bfd9c40649b6ee348cf.tar.bz2 nixpkgs-f32a622d3a3d55ce0c466bfd9c40649b6ee348cf.tar.lz nixpkgs-f32a622d3a3d55ce0c466bfd9c40649b6ee348cf.tar.xz nixpkgs-f32a622d3a3d55ce0c466bfd9c40649b6ee348cf.tar.zst nixpkgs-f32a622d3a3d55ce0c466bfd9c40649b6ee348cf.zip |
paperwork: 2.1.2 -> 2.2.0
changelog: https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/blob/develop/paperwork-gtk/ChangeLog
Diffstat (limited to 'pkgs/applications/office/paperwork/paperwork-backend.nix')
-rw-r--r-- | pkgs/applications/office/paperwork/paperwork-backend.nix | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/pkgs/applications/office/paperwork/paperwork-backend.nix b/pkgs/applications/office/paperwork/paperwork-backend.nix index cbb57496427..95608b26e2f 100644 --- a/pkgs/applications/office/paperwork/paperwork-backend.nix +++ b/pkgs/applications/office/paperwork/paperwork-backend.nix @@ -1,6 +1,5 @@ { buildPythonPackage , lib -, fetchpatch , fetchFromGitLab , pyenchant , scikit-learn @@ -8,7 +7,6 @@ , pycountry , whoosh , termcolor -, levenshtein , pygobject3 , pyocr , natsort @@ -24,34 +22,30 @@ , shared-mime-info , libreoffice , unittestCheckHook +, setuptools-scm }: buildPythonPackage rec { pname = "paperwork-backend"; inherit (import ./src.nix { inherit fetchFromGitLab; }) version src; + format = "pyproject"; sourceRoot = "${src.name}/paperwork-backend"; patches = [ # disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700 ./flaky_test.patch - (fetchpatch { - url = "https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/commit/0f5cf0fe7ef223000e02c28e4c7576f74a778fe6.patch"; - hash = "sha256-NIK3j2TdydfeK3/udS/Pc+tJa/pPkfAmSPPeaYuaCq4="; - }) ]; patchFlags = [ "-p2" ]; postPatch = '' - substituteInPlace setup.py \ - --replace python-Levenshtein Levenshtein - - echo 'version = "${version}"' > src/paperwork_backend/_version.py chmod a+w -R .. patchShebangs ../tools ''; + env.SETUPTOOLS_SCM_PRETEND_VERSION = version; + propagatedBuildInputs = [ distro gtk3 @@ -63,7 +57,6 @@ buildPythonPackage rec { pygobject3 pyocr pypillowfight - levenshtein poppler_gi scikit-learn termcolor @@ -74,6 +67,7 @@ buildPythonPackage rec { gettext shared-mime-info which + setuptools-scm ]; preBuild = '' |