From 59a6f939f83789c2f132bfda50fe0b1dc190f102 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 11 May 2018 18:21:41 +0200 Subject: [PATCH] pythonPackages.prometheus_client: init at 0.2.0 --- .../prometheus_client/default.nix | 19 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/python-modules/prometheus_client/default.nix diff --git a/pkgs/development/python-modules/prometheus_client/default.nix b/pkgs/development/python-modules/prometheus_client/default.nix new file mode 100644 index 000000000000..eaf353af0823 --- /dev/null +++ b/pkgs/development/python-modules/prometheus_client/default.nix @@ -0,0 +1,19 @@ +{ lib, stdenv, buildPythonPackage, fetchPypi, pytest }: + +buildPythonPackage rec { + pname = "prometheus_client"; + version = "0.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1r3510jq6iryd2a8jln2qpvqy112y5502ncbfkn116xl7gj74r6r"; + }; + + doCheck = false; + + meta = with lib; { + description = "Prometheus instrumentation library for Python applications"; + homepage = https://github.com/prometheus/client_python; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c805a8ba520e..2e8f77d8a90e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18267,6 +18267,8 @@ EOF coinmarketcap = callPackage ../development/python-modules/coinmarketcap { }; pyowm = callPackage ../development/python-modules/pyowm { }; + + prometheus_client = callPackage ../development/python-modules/prometheus_client { }; }); in fix' (extends overrides packages)