2023-06-05 18:06:12 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2024-06-19 05:05:22 +02:00
|
|
|
setuptools,
|
2023-06-05 18:06:12 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-leaflet";
|
2024-12-04 17:55:46 +00:00
|
|
|
version = "0.31.0";
|
2024-06-19 05:05:22 +02:00
|
|
|
pyproject = true;
|
2023-06-05 18:06:12 +02:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-06-19 05:05:22 +02:00
|
|
|
pname = "django_leaflet";
|
|
|
|
inherit version;
|
2024-12-04 17:55:46 +00:00
|
|
|
hash = "sha256-+yt1+Er/YNQFhlkwDzGnEVVMZdEout5fqAiGN/sHUfc=";
|
2023-06-05 18:06:12 +02:00
|
|
|
};
|
|
|
|
|
2024-06-19 05:05:22 +02:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ django ];
|
2023-06-05 18:06:12 +02:00
|
|
|
|
|
|
|
# The tests seem to be impure.
|
|
|
|
# They are throwing a error about unset configs:
|
2023-06-18 09:43:28 +02:00
|
|
|
# > django.core.exceptions.ImproperlyConfigured: Requested setting LEAFLET_CONFIG, but settings are not configured.
|
2023-06-05 18:06:12 +02:00
|
|
|
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";
|
2023-06-18 09:43:28 +02:00
|
|
|
changelog = "https://github.com/makinacorpus/django-leaflet/blob/${version}/CHANGES";
|
2023-06-05 18:06:12 +02:00
|
|
|
license = licenses.lgpl3Only;
|
2024-07-28 16:44:11 +02:00
|
|
|
maintainers = [ ];
|
2023-06-05 18:06:12 +02:00
|
|
|
};
|
|
|
|
}
|