Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, django, fetchFromGitHub, pillow, reportlab, svglib, pytestCheckHook, pytest-django, setuptools, testfixtures,}:
buildPythonPackage rec { pname = "easy-thumbnails"; version = "2.10.1"; pyproject = true;
src = fetchFromGitHub { owner = "SmileyChris"; repo = "easy-thumbnails"; tag = version; hash = "sha256-GPZ99OaQRSogS8gJXz8rVUjUeNkEk019TYx0VWa0Q6I="; };
build-system = [ setuptools ];
dependencies = [ django pillow ];
optional-dependencies.svg = [ reportlab svglib ];
nativeCheckInputs = [ pytestCheckHook pytest-django ] ++ lib.concatAttrValues optional-dependencies;
checkInputs = [ testfixtures ];
disabledTests = [ # AssertionError: 'ERROR' != 'INFO' "test_postprocessor" # broken by SVG sizing math changes in svglib 2.x "ThumbnailSVGImage" ];
preCheck = '' export DJANGO_SETTINGS_MODULE="easy_thumbnails.tests.settings" '';
pythonImportsCheck = [ "easy_thumbnails" ];
meta = { description = "Easy thumbnails for Django"; homepage = "https://github.com/SmileyChris/easy-thumbnails"; changelog = "https://github.com/SmileyChris/easy-thumbnails/blob/${src.tag}/CHANGES.rst"; license = lib.licenses.bsd3; maintainers = [ lib.maintainers.onny ]; };}