diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-29 14:01:30 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-29 14:01:30 +0100 |
commit | 0072b15245c61b6daa8d53f35d3695f3dcc06550 (patch) | |
tree | 35a98a53369d74d1fff0122b9c18507523a422db | |
parent | d53978239b265066804a45b7607b010b9cb4c50c (diff) |
python3Packages.prometheus-client: disable on older Python releases
-rw-r--r-- | pkgs/development/python-modules/prometheus-client/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/prometheus-client/default.nix b/pkgs/development/python-modules/prometheus-client/default.nix index 6c7cede280cf..7af4e2b02faa 100644 --- a/pkgs/development/python-modules/prometheus-client/default.nix +++ b/pkgs/development/python-modules/prometheus-client/default.nix @@ -2,11 +2,15 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "prometheus-client"; version = "0.12.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "prometheus"; @@ -19,11 +23,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "prometheus_client" ]; + pythonImportsCheck = [ + "prometheus_client" + ]; meta = with lib; { description = "Prometheus instrumentation library for Python applications"; homepage = "https://github.com/prometheus/client_python"; license = licenses.asl20; + maintainers = with maintainers; [ ]; }; } |