2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-27 15:17:16 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-15 23:42:31 +01:00
|
|
|
, isPy27
|
2020-06-08 19:54:53 +01:00
|
|
|
, setuptools_scm
|
2018-10-27 15:17:16 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sorl-thumbnail";
|
2020-11-29 14:04:42 +00:00
|
|
|
version = "12.7.0";
|
2020-08-15 23:42:31 +01:00
|
|
|
disabled = isPy27;
|
2018-10-27 15:17:16 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:42 +00:00
|
|
|
sha256 = "fbe6dfd66a1aceb7e0203895ff5622775e50266f8d8cfd841fe1500bd3e19018";
|
2018-10-27 15:17:16 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 19:54:53 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2018-10-27 15:17:16 +01:00
|
|
|
# Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sorl-thumbnail.readthedocs.org/en/latest/";
|
2018-10-27 15:17:16 +01:00
|
|
|
description = "Thumbnails for Django";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|