From fe623f174f3e4b77298d01ce95d82866445d3a1e Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 29 Oct 2024 09:44:27 +0100 Subject: [PATCH] python3Packages.easy-thumbnails: 2.8.5 -> 2.10 --- .../easy-thumbnails/default.nix | 38 ++++++++++++++----- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/easy-thumbnails/default.nix b/pkgs/development/python-modules/easy-thumbnails/default.nix index 11c5aa483f5973..87ab5bf36ec8a5 100644 --- a/pkgs/development/python-modules/easy-thumbnails/default.nix +++ b/pkgs/development/python-modules/easy-thumbnails/default.nix @@ -7,37 +7,55 @@ pythonOlder, reportlab, svglib, + pytestCheckHook, + pytest-django, + setuptools, + testfixtures, }: buildPythonPackage rec { pname = "easy-thumbnails"; version = "2.10"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.9"; src = fetchPypi { - inherit pname version; + inherit version; + pname = "easy_thumbnails"; hash = "sha256-0AlGL815Ht8kluXtRtBEcS4aBrfUYA5M8oEgAumQTvU="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ django pillow - svglib reportlab + svglib + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-django ]; - # Tests require a Django instance which is setup - doCheck = false; + checkInputs = [ testfixtures ]; + + env.DJANGO_SETTINGS_MODULE = "easy_thumbnails.tests.settings"; + + disabledTests = [ + # AssertionError: 'ERROR' != 'INFO' + "test_postprocessor" + ]; pythonImportsCheck = [ "easy_thumbnails" ]; - meta = with lib; { + meta = { description = "Easy thumbnails for Django"; homepage = "https://github.com/SmileyChris/easy-thumbnails"; changelog = "https://github.com/SmileyChris/easy-thumbnails/blob/${version}/CHANGES.rst"; - license = licenses.bsd3; - maintainers = [ ]; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.onny ]; }; }