fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
43 lines
976 B
Nix
43 lines
976 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
django,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sorl-thumbnail";
|
|
version = "12.10.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-3pWkkhf9/s7SIvo86qAdMS7i+KrVa6NNbHDy3umoSTg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [ django ];
|
|
|
|
env.DJANGO_SETTINGS_MODULE = "sorl.thumbnail.conf.defaults";
|
|
|
|
# Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "sorl.thumbnail" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://sorl-thumbnail.readthedocs.org/en/latest/";
|
|
description = "Thumbnails for Django";
|
|
changelog = "https://github.com/jazzband/sorl-thumbnail/blob/${version}/CHANGES.rst";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|