11 buildPythonPackage rec {
12 pname = "django-prometheus";
14 format = "setuptools";
15 disabled = pythonOlder "3.6";
17 src = fetchFromGitHub {
21 hash = "sha256-JiLH+4mmNdb9BN81J5YFiMPna/3gaKUK6ARjmCa3fE8=";
24 patches = [ ./drop-untestable-database-backends.patch ];
27 substituteInPlace setup.py \
28 --replace '"pytest-runner"' ""
31 propagatedBuildInputs = [ prometheus-client ];
33 pythonImportsCheck = [ "django_prometheus" ];
41 changelog = "https://github.com/korfuri/django-prometheus/releases/tag/v${version}";
42 description = "Django middlewares to monitor your application with Prometheus.io";
43 homepage = "https://github.com/korfuri/django-prometheus";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ hexa ];