diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-11-03 00:15:48 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-11-03 00:15:48 +0100 |
commit | 08e401e8d2bc7980e708f97d049c352de0e87ba6 (patch) | |
tree | 51fe6471c64fd7e11c68cde43762ea75f3246be7 /pkgs/development | |
parent | b168f216ad9c9d9057ee408a1c36613f9180c5fb (diff) |
python310Packages.pydyf: 0.1.2 -> 0.5.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pydyf/default.nix | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/pydyf/default.nix b/pkgs/development/python-modules/pydyf/default.nix index 4cf44e3c67eb6..935cc044e5c10 100644 --- a/pkgs/development/python-modules/pydyf/default.nix +++ b/pkgs/development/python-modules/pydyf/default.nix @@ -1,49 +1,47 @@ { lib , buildPythonPackage -, fetchpatch , fetchPypi -, isPy3k -, pytestCheckHook -, coverage +, flit-core , ghostscript , pillow +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "pydyf"; - version = "0.1.2"; - disabled = !isPy3k; + version = "0.5.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit version; - pname = "pydyf"; - sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw="; + inherit pname version; + hash = "sha256-UedRrhUEA3wfwfSBURkTewEYAs1fbDU52wZsRVsUp+E="; }; - patches = [ - # Fix tests for Ghostscript 9.56 - # Remove after v0.1.3 has been released - (fetchpatch { - url = "https://github.com/CourtBouillon/pydyf/commit/d4c34823f1d15368753c9c26f7acc7a24fc2d979.patch"; - sha256 = "sha256-2hHZW/q5CbStbpSJYbm3b23qKXANEb5jbPGQ83uHC+Q="; - }) - ]; - postPatch = '' substituteInPlace pyproject.toml \ --replace "--isort --flake8 --cov --no-cov-on-fail" "" ''; + nativeBuildInputs = [ + flit-core + ]; + checkInputs = [ - pytestCheckHook - coverage ghostscript pillow + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pydyf" ]; meta = with lib; { - homepage = "https://doc.courtbouillon.org/pydyf/stable/"; description = "Low-level PDF generator written in Python and based on PDF specification 1.7"; + homepage = "https://doc.courtbouillon.org/pydyf/stable/"; license = licenses.bsd3; maintainers = with maintainers; [ rprecenth ]; }; |