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