Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ 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" ];
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 ]; };}