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