diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-04-13 11:47:30 +0200 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-04-13 12:16:13 +0200 |
commit | dd95a34b4e40aadfa4ce82b07be725a889aa7f28 (patch) | |
tree | db4dc733628d10e2201fb1350fe2ff386ae09a5a /pkgs/development/python-modules/pdfx | |
parent | a73020b2a150322c9832b50baeb0296ba3b13dd7 (diff) |
pythonPackages.pdfx: 1.3.1 -> 1.4.1
Diffstat (limited to 'pkgs/development/python-modules/pdfx')
-rw-r--r-- | pkgs/development/python-modules/pdfx/default.nix | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/pdfx/default.nix b/pkgs/development/python-modules/pdfx/default.nix index a8c110fdba70a..3b63e67fddece 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; |