From dd95a34b4e40aadfa4ce82b07be725a889aa7f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 13 Apr 2021 11:47:30 +0200 Subject: [PATCH] pythonPackages.pdfx: 1.3.1 -> 1.4.1 --- .../python-modules/pdfx/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pdfx/default.nix b/pkgs/development/python-modules/pdfx/default.nix index a8c110fdba7..3b63e67fdde 100644 --- a/pkgs/development/python-modules/pdfx/default.nix +++ b/pkgs/development/python-modules/pdfx/default.nix @@ -1,28 +1,24 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pdfminer, chardet, pytest }: +{ lib, buildPythonPackage, fetchFromGitHub, pdfminer, chardet, pytestCheckHook }: buildPythonPackage rec { pname = "pdfx"; - version = "1.3.1"; + version = "1.4.1"; src = fetchFromGitHub { owner = "metachris"; repo = "pdfx"; rev = "v${version}"; - sha256 = "1183k4h5qdf8y0imbir9ja3yzzsvdmqgbv3bi6dnkgr1wy2xfr0v"; + sha256 = "sha256-POpP6XwcqwvImrtIiDjpnHoNE0MKapuPjxojo+ocBK0="; }; - # Remove after https://github.com/metachris/pdfx/pull/28 - prePatch = '' - sed -i -e "s|pdfminer2|pdfminer.six|" setup.py + postPatch = '' + substituteInPlace requirements.txt \ + --replace "chardet==4.0.0" "chardet" ''; propagatedBuildInputs = [ pdfminer chardet ]; - checkInputs = [ pytest ]; - - checkPhase = '' - py.test - ''; + checkInputs = [ pytestCheckHook ]; meta = with lib; { inherit (src.meta) homepage;