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