pythonPackages.pdfx: 1.3.1 -> 1.4.1

+7 -11
+7 -11
pkgs/development/python-modules/pdfx/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, pdfminer, chardet, pytest }: 1 + { lib, buildPythonPackage, fetchFromGitHub, pdfminer, chardet, pytestCheckHook }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "pdfx"; 5 - version = "1.3.1"; 5 + version = "1.4.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "metachris"; 9 9 repo = "pdfx"; 10 10 rev = "v${version}"; 11 - sha256 = "1183k4h5qdf8y0imbir9ja3yzzsvdmqgbv3bi6dnkgr1wy2xfr0v"; 11 + sha256 = "sha256-POpP6XwcqwvImrtIiDjpnHoNE0MKapuPjxojo+ocBK0="; 12 12 }; 13 13 14 - # Remove after https://github.com/metachris/pdfx/pull/28 15 - prePatch = '' 16 - sed -i -e "s|pdfminer2|pdfminer.six|" setup.py 14 + postPatch = '' 15 + substituteInPlace requirements.txt \ 16 + --replace "chardet==4.0.0" "chardet" 17 17 ''; 18 18 19 19 propagatedBuildInputs = [ pdfminer chardet ]; 20 20 21 - checkInputs = [ pytest ]; 22 - 23 - checkPhase = '' 24 - py.test 25 - ''; 21 + checkInputs = [ pytestCheckHook ]; 26 22 27 23 meta = with lib; { 28 24 inherit (src.meta) homepage;