tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.pdfx: 1.3.1 -> 1.4.1
Robert Schütz
4 years ago
dd95a34b
a73020b2
+7
-11
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pdfx
default.nix
+7
-11
pkgs/development/python-modules/pdfx/default.nix
···
1
1
-
{ lib, buildPythonPackage, fetchFromGitHub, pdfminer, chardet, pytest }:
1
1
+
{ lib, buildPythonPackage, fetchFromGitHub, pdfminer, chardet, pytestCheckHook }:
2
2
3
3
buildPythonPackage rec {
4
4
pname = "pdfx";
5
5
-
version = "1.3.1";
5
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
11
-
sha256 = "1183k4h5qdf8y0imbir9ja3yzzsvdmqgbv3bi6dnkgr1wy2xfr0v";
11
11
+
sha256 = "sha256-POpP6XwcqwvImrtIiDjpnHoNE0MKapuPjxojo+ocBK0=";
12
12
};
13
13
14
14
-
# Remove after https://github.com/metachris/pdfx/pull/28
15
15
-
prePatch = ''
16
16
-
sed -i -e "s|pdfminer2|pdfminer.six|" setup.py
14
14
+
postPatch = ''
15
15
+
substituteInPlace requirements.txt \
16
16
+
--replace "chardet==4.0.0" "chardet"
17
17
'';
18
18
19
19
propagatedBuildInputs = [ pdfminer chardet ];
20
20
21
21
-
checkInputs = [ pytest ];
22
22
-
23
23
-
checkPhase = ''
24
24
-
py.test
25
25
-
'';
21
21
+
checkInputs = [ pytestCheckHook ];
26
22
27
23
meta = with lib; {
28
24
inherit (src.meta) homepage;