@ -1,31 +1,27 @@
{ buildPythonPackage ,
fetchPypi ,
fetchpatch ,
pytestCheckHook ,
brotli ,
cairosvg ,
fonttools ,
pydyf ,
pyphen ,
cffi ,
cssselect ,
lxml ,
html5lib ,
tinycss ,
zopfli ,
glib ,
harfbuzz ,
pango ,
fontconfig ,
lib , stdenv ,
ghostscript ,
pytest ,
pytest-runner ,
pytest-isort ,
pytest-flake8 ,
pytest-cov ,
isPy3k ,
substituteAll
{ buildPythonPackage
, fetchPypi
, fetchpatch
, pytestCheckHook
, brotli
, cairosvg
, fonttools
, pydyf
, pyphen
, cffi
, cssselect
, lxml
, html5lib
, tinycss
, zopfli
, glib
, harfbuzz
, pango
, fontconfig
, lib
, stdenv
, ghostscript
, isPy3k
, substituteAll
} :
buildPythonPackage rec {
@ -33,26 +29,25 @@ buildPythonPackage rec {
version = " 5 3 . 4 " ;
disabled = ! isPy3k ;
pytestFlagsArray = [
# setup.py is auto-generated and doesn't pass the flake8 check
" - - i g n o r e = s e t u p . p y "
# ffi.py is patched by us and doesn't pass the flake8 check
" - - i g n o r e = w e a s y p r i n t / t e x t / f f i . p y "
] ;
src = fetchPypi {
inherit version ;
pname = " w e a s y p r i n t " ;
sha256 = " s h a 2 5 6 - E M y x f V X H M J a 9 8 e 3 T 7 + W M u F W w f k w w f Z u t T r y a P x P / R Y A = " ;
} ;
postPatch = ''
substituteInPlace pyproject . toml \
- - replace " - - i s o r t - - f l a k e 8 - - c o v - - n o - c o v - o n - f a i l " " "
'' ;
disabledTests = [
# test_font_stretch needs the Ahem font (fails on macOS)
# needs the Ahem font (fails on macOS)
" t e s t _ f o n t _ s t r e t c h "
] ;
checkInputs = [
pytestCheckHook
ghostscript
pytest
pytest-runner
pytest-isort
pytest-flake8
pytest-cov
] ;
FONTCONFIG_FILE = " ${ fontconfig . out } / e t c / f o n t s / f o n t s . c o n f " ;
@ -83,12 +78,6 @@ buildPythonPackage rec {
} )
] ;
src = fetchPypi {
inherit version ;
pname = " w e a s y p r i n t " ;
sha256 = " s h a 2 5 6 - E M y x f V X H M J a 9 8 e 3 T 7 + W M u F W w f k w w f Z u t T r y a P x P / R Y A = " ;
} ;
meta = with lib ; {
homepage = " h t t p s : / / w e a s y p r i n t . o r g / " ;
description = " C o n v e r t s w e b d o c u m e n t s t o P D F " ;