invoice2data: clean up some build and runtime dependencies
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, ghostscript
|
, ghostscript
|
||||||
, imagemagick
|
, imagemagick
|
||||||
, poppler_utils
|
, poppler_utils
|
||||||
@@ -16,26 +17,29 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
owner = "invoice-x";
|
owner = "invoice-x";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-ss2h8cg0sga+lzJyQHckrZB/Eb63Oj3FkqmGqWCzCQ8=";
|
hash = "sha256-ss2h8cg0sga+lzJyQHckrZB/Eb63Oj3FkqmGqWCzCQ8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with python3.pkgs; [ setuptools-git ];
|
patches = [
|
||||||
|
# https://github.com/invoice-x/invoice2data/pull/522
|
||||||
|
(fetchpatch {
|
||||||
|
name = "clean-up-build-dependencies.patch";
|
||||||
|
url = "https://github.com/invoice-x/invoice2data/commit/ccea3857c7c8295ca51dc24de6cde78774ea7e64.patch";
|
||||||
|
hash = "sha256-BhqPW4hWG/EaR3qBv5a68dcvIMrCCT74GdDHr0Mss5Q=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
setuptools-git
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
chardet
|
|
||||||
dateparser
|
dateparser
|
||||||
pdfminer-six
|
pdfminer-six
|
||||||
pillow
|
pillow
|
||||||
pyyaml
|
pyyaml
|
||||||
setuptools
|
|
||||||
unidecode
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.cfg \
|
|
||||||
--replace "pytest-runner" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
makeWrapperArgs = ["--prefix" "PATH" ":" (lib.makeBinPath [
|
makeWrapperArgs = ["--prefix" "PATH" ":" (lib.makeBinPath [
|
||||||
ghostscript
|
ghostscript
|
||||||
imagemagick
|
imagemagick
|
||||||
|
|||||||
Reference in New Issue
Block a user