f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
43 lines
863 B
Nix
43 lines
863 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchPypi,
|
|
pillow,
|
|
pythonOlder,
|
|
reportlab,
|
|
svglib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "easy-thumbnails";
|
|
version = "2.8.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fk6RJgn8m2Czof72VX7BXd+cT5RiZ6kuaSDf1N12XjU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
pillow
|
|
svglib
|
|
reportlab
|
|
];
|
|
|
|
# Tests require a Django instance which is setup
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "easy_thumbnails" ];
|
|
|
|
meta = with lib; {
|
|
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 = with maintainers; [ ];
|
|
};
|
|
}
|