summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-prometheus/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/django-prometheus/default.nix')
-rw-r--r--pkgs/development/python-modules/django-prometheus/default.nix27
1 files changed, 11 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/django-prometheus/default.nix b/pkgs/development/python-modules/django-prometheus/default.nix
index 40bdf4e57ff7..e15174d56ae4 100644
--- a/pkgs/development/python-modules/django-prometheus/default.nix
+++ b/pkgs/development/python-modules/django-prometheus/default.nix
@@ -1,10 +1,11 @@
-{ lib
-, buildPythonPackage
-, pythonOlder
-, fetchFromGitHub
-, prometheus-client
-, pytest-django
-, pytestCheckHook
+{
+ lib,
+ buildPythonPackage,
+ pythonOlder,
+ fetchFromGitHub,
+ prometheus-client,
+ pytest-django,
+ pytestCheckHook,
}:
buildPythonPackage rec {
@@ -20,22 +21,16 @@ buildPythonPackage rec {
hash = "sha256-JiLH+4mmNdb9BN81J5YFiMPna/3gaKUK6ARjmCa3fE8=";
};
- patches = [
- ./drop-untestable-database-backends.patch
- ];
+ patches = [ ./drop-untestable-database-backends.patch ];
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
'';
- propagatedBuildInputs = [
- prometheus-client
- ];
+ propagatedBuildInputs = [ prometheus-client ];
- pythonImportsCheck = [
- "django_prometheus"
- ];
+ pythonImportsCheck = [ "django_prometheus" ];
nativeCheckInputs = [
pytest-django