1{
2 pkgs,
3 buildPythonPackage,
4 django,
5 fetchPypi,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "django-leaflet";
12 version = "0.32.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 pname = "django_leaflet";
19 inherit version;
20 hash = "sha256-ATzLBu4IBxyuyYpl3/1oqzaU2vznLK/zTz1481VoriU=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ django ];
26
27 # The tests seem to be impure.
28 # They are throwing a error about unset configs:
29 # > django.core.exceptions.ImproperlyConfigured: Requested setting LEAFLET_CONFIG, but settings are not configured.
30 doCheck = false;
31
32 # This dosn't work either because of the same exception as above
33 # pythonImportsCheck = [ "leaflet" ];
34
35 meta = with pkgs.lib; {
36 description = "Allows you to use Leaflet in your Django projects";
37 homepage = "https://github.com/makinacorpus/django-leaflet";
38 changelog = "https://github.com/makinacorpus/django-leaflet/blob/${version}/CHANGES";
39 license = licenses.lgpl3Only;
40 maintainers = [ ];
41 };
42}