Skip to content

Commit

Permalink
python3Packages.easy-thumbnails: 2.8.5 -> 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
onny authored and wegank committed Nov 1, 2024
1 parent 81d58d9 commit fe623f1
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions pkgs/development/python-modules/easy-thumbnails/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
};
}

0 comments on commit fe623f1

Please sign in to comment.