mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
python3Packages.easy-thumbnails: 2.8.5 -> 2.10.0 (#352059)
This commit is contained in:
commit
6323b54ea0
@ -2,42 +2,63 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
django,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
pillow,
|
||||
pythonOlder,
|
||||
reportlab,
|
||||
svglib,
|
||||
pytestCheckHook,
|
||||
pytest-django,
|
||||
setuptools,
|
||||
testfixtures,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "easy-thumbnails";
|
||||
version = "2.10";
|
||||
format = "setuptools";
|
||||
version = "2.10.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-0AlGL815Ht8kluXtRtBEcS4aBrfUYA5M8oEgAumQTvU=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "SmileyChris";
|
||||
repo = "easy-thumbnails";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-8JTHYQIBbu/4fknK2ZEQeDSgaxKGDfflxumcFMpaGQk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
django
|
||||
pillow
|
||||
svglib
|
||||
reportlab
|
||||
svglib
|
||||
];
|
||||
|
||||
# Tests require a Django instance which is setup
|
||||
doCheck = false;
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-django
|
||||
];
|
||||
|
||||
checkInputs = [ testfixtures ];
|
||||
|
||||
disabledTests = [
|
||||
# AssertionError: 'ERROR' != 'INFO'
|
||||
"test_postprocessor"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export DJANGO_SETTINGS_MODULE="easy_thumbnails.tests.settings"
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user