5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{
|
|
pkgs,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-leaflet";
|
|
version = "0.30.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "django_leaflet";
|
|
inherit version;
|
|
hash = "sha256-jsG2RcUe0Zob9GAZVKSIr8iPPubqqsh679uhUioNR0Y=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ 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 = [ ];
|
|
};
|
|
}
|