python310Packages.pydyf: 0.1.2 -> 0.5.0

+19 -21
+19 -21
pkgs/development/python-modules/pydyf/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchpatch 4 3 , fetchPypi 5 - , isPy3k 6 - , pytestCheckHook 7 - , coverage 4 + , flit-core 8 5 , ghostscript 9 6 , pillow 7 + , pytestCheckHook 8 + , pythonOlder 10 9 }: 11 10 12 11 buildPythonPackage rec { 13 12 pname = "pydyf"; 14 - version = "0.1.2"; 15 - disabled = !isPy3k; 13 + version = "0.5.0"; 14 + format = "pyproject"; 15 + 16 + disabled = pythonOlder "3.7"; 16 17 17 18 src = fetchPypi { 18 - inherit version; 19 - pname = "pydyf"; 20 - sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw="; 19 + inherit pname version; 20 + hash = "sha256-UedRrhUEA3wfwfSBURkTewEYAs1fbDU52wZsRVsUp+E="; 21 21 }; 22 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 23 postPatch = '' 33 24 substituteInPlace pyproject.toml \ 34 25 --replace "--isort --flake8 --cov --no-cov-on-fail" "" 35 26 ''; 36 27 28 + nativeBuildInputs = [ 29 + flit-core 30 + ]; 31 + 37 32 checkInputs = [ 38 - pytestCheckHook 39 - coverage 40 33 ghostscript 41 34 pillow 35 + pytestCheckHook 36 + ]; 37 + 38 + pythonImportsCheck = [ 39 + "pydyf" 42 40 ]; 43 41 44 42 meta = with lib; { 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 + homepage = "https://doc.courtbouillon.org/pydyf/stable/"; 47 45 license = licenses.bsd3; 48 46 maintainers = with maintainers; [ rprecenth ]; 49 47 };