tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.pydyf: 0.1.2 -> 0.5.0
Fabian Affolter
3 years ago
08e401e8
b168f216
+19
-21
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pydyf
default.nix
+19
-21
pkgs/development/python-modules/pydyf/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
-
, fetchpatch
4
3
, fetchPypi
5
5
-
, isPy3k
6
6
-
, pytestCheckHook
7
7
-
, coverage
4
4
+
, flit-core
8
5
, ghostscript
9
6
, pillow
7
7
+
, pytestCheckHook
8
8
+
, pythonOlder
10
9
}:
11
10
12
11
buildPythonPackage rec {
13
12
pname = "pydyf";
14
14
-
version = "0.1.2";
15
15
-
disabled = !isPy3k;
13
13
+
version = "0.5.0";
14
14
+
format = "pyproject";
15
15
+
16
16
+
disabled = pythonOlder "3.7";
16
17
17
18
src = fetchPypi {
18
18
-
inherit version;
19
19
-
pname = "pydyf";
20
20
-
sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw=";
19
19
+
inherit pname version;
20
20
+
hash = "sha256-UedRrhUEA3wfwfSBURkTewEYAs1fbDU52wZsRVsUp+E=";
21
21
};
22
22
23
23
-
patches = [
24
24
-
# Fix tests for Ghostscript 9.56
25
25
-
# Remove after v0.1.3 has been released
26
26
-
(fetchpatch {
27
27
-
url = "https://github.com/CourtBouillon/pydyf/commit/d4c34823f1d15368753c9c26f7acc7a24fc2d979.patch";
28
28
-
sha256 = "sha256-2hHZW/q5CbStbpSJYbm3b23qKXANEb5jbPGQ83uHC+Q=";
29
29
-
})
30
30
-
];
31
31
-
32
23
postPatch = ''
33
24
substituteInPlace pyproject.toml \
34
25
--replace "--isort --flake8 --cov --no-cov-on-fail" ""
35
26
'';
36
27
28
28
+
nativeBuildInputs = [
29
29
+
flit-core
30
30
+
];
31
31
+
37
32
checkInputs = [
38
38
-
pytestCheckHook
39
39
-
coverage
40
33
ghostscript
41
34
pillow
35
35
+
pytestCheckHook
36
36
+
];
37
37
+
38
38
+
pythonImportsCheck = [
39
39
+
"pydyf"
42
40
];
43
41
44
42
meta = with lib; {
45
45
-
homepage = "https://doc.courtbouillon.org/pydyf/stable/";
46
43
description = "Low-level PDF generator written in Python and based on PDF specification 1.7";
44
44
+
homepage = "https://doc.courtbouillon.org/pydyf/stable/";
47
45
license = licenses.bsd3;
48
46
maintainers = with maintainers; [ rprecenth ];
49
47
};