Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sorl-thumbnail / default.nix
blob2337d6b940c264da1fc694c91e4052be41c1a548
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , setuptools
6 , setuptools-scm
7 , django
8 }:
10 buildPythonPackage rec {
11   pname = "sorl-thumbnail";
12   version = "12.10.0";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-3pWkkhf9/s7SIvo86qAdMS7i+KrVa6NNbHDy3umoSTg=";
20   };
22   nativeBuildInputs = [
23     setuptools
24     setuptools-scm
25   ];
27   buildInputs = [
28     django
29   ];
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 = [
37     "sorl.thumbnail"
38   ];
40   meta = with lib; {
41     homepage = "https://sorl-thumbnail.readthedocs.org/en/latest/";
42     description = "Thumbnails for Django";
43     changelog = "https://github.com/jazzband/sorl-thumbnail/blob/${version}/CHANGES.rst";
44     license = licenses.bsd3;
45   };