python312Packages.llm-gguf: init at 0.2 (#364926)
[NixPkgs.git] / pkgs / development / python-modules / sorl-thumbnail / default.nix
blob161c8119cb9336faf12808f97e15f54477cf75da
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   setuptools,
7   setuptools-scm,
8   django,
9 }:
11 buildPythonPackage rec {
12   pname = "sorl-thumbnail";
13   version = "12.11.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchPypi {
19     pname = "sorl_thumbnail";
20     inherit version;
21     hash = "sha256-GRuJwn7LQLXCo1VJ1VfRfEhBxq/0ObLhe5OLke6kY7M=";
22   };
24   build-system = [
25     setuptools
26     setuptools-scm
27   ];
29   buildInputs = [ django ];
31   env.DJANGO_SETTINGS_MODULE = "sorl.thumbnail.conf.defaults";
33   # Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl.
34   doCheck = false;
36   pythonImportsCheck = [ "sorl.thumbnail" ];
38   meta = with lib; {
39     homepage = "https://sorl-thumbnail.readthedocs.org/en/latest/";
40     description = "Thumbnails for Django";
41     changelog = "https://github.com/jazzband/sorl-thumbnail/blob/${version}/CHANGES.rst";
42     license = licenses.bsd3;
43   };