Commit ddbf22f6 authored by Jonas Heinrich's avatar Jonas Heinrich
Browse files

python3Packages.django-filer: init at 3.2.3

parent 7516bbce
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  django,
  pythonOlder,
  pytestCheckHook,
  django-polymorphic,
  setuptools,
  python,
  easy-thumbnails,
  pillow-heif,
  django-app-helper,
  distutils,
}:

buildPythonPackage rec {
  pname = "django-filer";
  version = "3.2.3";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "django-cms";
    repo = "django-filer";
    rev = "refs/tags/${version}";
    hash = "sha256-PoUBnfNymighCsGoJE+iu31lxA9wqVXimFPCytQtPLg=";
  };

  build-system = [ setuptools ];

  dependencies = [
    django
    django-polymorphic
    easy-thumbnails
  ];

  optional-dependencies = {
    heif = [ pillow-heif ];
  };

  checkInputs = [
    distutils
    django-app-helper
  ];

  checkPhase = ''
    runHook preCheck
    ${python.interpreter} tests/settings.py
    runHook postCheck
  '';

  meta = {
    description = "File management application for Django";
    homepage = "https://github.com/django-cms/django-filer";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.onny ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -3415,6 +3415,8 @@ self: super: with self; {
  django-extensions = callPackage ../development/python-modules/django-extensions { };
  django-filer = callPackage ../development/python-modules/django-filer { };
  django-filter = callPackage ../development/python-modules/django-filter { };
  django-formtools = callPackage ../development/python-modules/django-formtools { };