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