Skip to content

Commit

Permalink
python-poppler
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 26, 2024
1 parent 295c9e3 commit 5425615
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
68 changes: 68 additions & 0 deletions pkgs/development/python-modules/python-poppler/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
lib,
buildPythonPackage,
fetchPypi,
django,
pythonOlder,
pytestCheckHook,
setuptools,
django-classy-tags,
django-formtools,
django-treebeard,
django-sekizai,
meson-python,
ninja,
meson,
poppler,
pkgconfig,
}:

buildPythonPackage rec {
pname = "python-poppler";
version = "0.4.1";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit version;
pname = "python_poppler";
hash = "sha256-5spcI+wCNQvyzvhaa/nxsmF5ZDbbR4F2+dJPsU7uzGo=";
};

build-system = [ setuptools ];

build-inputs = [ poppler ];

nativeBuildInputs = [
meson
ninja
pkgconfig
];

dependencies = [
django
django-classy-tags
django-formtools
django-treebeard
django-sekizai

meson-python
ninja
poppler
];

env.DJANGO_SETTINGS_MODULE = "tests.settings";

checkInputs = [ pytestCheckHook ];

pythonImportCheck = [ "django-cms" ];

meta = {
description = "Lean enterprise content management powered by Django";
homepage = "https://django-cms.org";
changelog = "https://github.com/django-cms/django-cms/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.onny ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10466,6 +10466,8 @@ self: super: with self; {

python-owasp-zap-v2-4 = callPackage ../development/python-modules/python-owasp-zap-v2-4 { };

python-poppler = callPackage ../development/python-modules/python-poppler { };

python-pptx = callPackage ../development/python-modules/python-pptx { };

python-songpal = callPackage ../development/python-modules/python-songpal { };
Expand Down

0 comments on commit 5425615

Please sign in to comment.