Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-leaflet / default.nix
blob7ea1ba4a58d9e64ad96242053ae8ebe732e62e48
1 { pkgs
2 , buildPythonPackage
3 , django
4 , fetchPypi
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "django-leaflet";
10   version = "0.29.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-L23Ixxh/0i5itvK3tC7thpIPgb7DEqplSYHr5byOCGY=";
18   };
20   propagatedBuildInputs = [
21     django
22   ];
24   # The tests seem to be impure.
25   # They are throwing a error about unset configs:
26   # > django.core.exceptions.ImproperlyConfigured: Requested setting LEAFLET_CONFIG, but settings are not configured.
27   doCheck = false;
29   # This dosn't work either because of the same exception as above
30   # pythonImportsCheck = [ "leaflet" ];
32   meta = with pkgs.lib; {
33     description = "Allows you to use Leaflet in your Django projects";
34     homepage = "https://github.com/makinacorpus/django-leaflet";
35     changelog = "https://github.com/makinacorpus/django-leaflet/blob/${version}/CHANGES";
36     license = licenses.lgpl3Only;
37     maintainers = with maintainers; [ janik ];
38   };