diff --git a/pkgs/development/python-modules/pydyf/default.nix b/pkgs/development/python-modules/pydyf/default.nix new file mode 100644 index 000000000000..d83034d25330 --- /dev/null +++ b/pkgs/development/python-modules/pydyf/default.nix @@ -0,0 +1,48 @@ +{ lib, + buildPythonPackage, + fetchPypi, + isPy3k, + pytestCheckHook, + coverage, + ghostscript, + pillow, + pytest, + pytest-cov, + pytest-flake8, + pytest-isort +}: + +buildPythonPackage rec { + pname = "pydyf"; + version = "0.1.2"; + disabled = !isPy3k; + + pytestFlagsArray = [ + # setup.py is auto-generated and doesn't pass the flake8 check + "--ignore=setup.py" + ]; + + checkInputs = [ + pytestCheckHook + coverage + ghostscript + pillow + pytest + pytest-cov + pytest-flake8 + pytest-isort + ]; + + src = fetchPypi { + inherit version; + pname = "pydyf"; + sha256 = "sha256-Hi9d5IF09QXeAlp9HnzwG73ZQiyoq5RReCvwDuF4YCw="; + }; + + 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"; + license = licenses.bsd3; + maintainers = with maintainers; [ rprecenth ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7b7e9017fac..47b605410742 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6346,6 +6346,8 @@ in { pydy = callPackage ../development/python-modules/pydy { }; + pydyf = callPackage ../development/python-modules/pydyf { }; + pyechonest = callPackage ../development/python-modules/pyechonest { }; pyeclib = callPackage ../development/python-modules/pyeclib { };