From d2150a7470c3fa61f00d1318f9dd606f4568e1a8 Mon Sep 17 00:00:00 2001 From: sstent Date: Tue, 23 Jan 2024 03:27:37 +0000 Subject: [PATCH] sync --- pkgs/python/prometheus-api-client/default.nix | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/python/prometheus-api-client/default.nix diff --git a/pkgs/python/prometheus-api-client/default.nix b/pkgs/python/prometheus-api-client/default.nix new file mode 100644 index 0000000..3e40086 --- /dev/null +++ b/pkgs/python/prometheus-api-client/default.nix @@ -0,0 +1,35 @@ +{ lib, python3, pkgs, callPackage, fetchurl,python3Packages, ... }: + +let + pname = "prometheus-api-client"; + version = "0.5.4"; + src = fetchurl { + url = "https://pypi.org/packages/source/p/prometheus-api-client/prometheus-api-client-0.5.4.tar.gz"; + sha256 = "sha256-OFaBB+GCqibyJZn3lCFeo93l7NPvFJRO72FO6qRsm2o="; + }; + +in + +python3.pkgs.buildPythonPackage { + pname = pname; + version = version; + src = src; + + + doCheck = false; + + propagatedBuildInputs = with pkgs.python3Packages; [ + matplotlib + numpy + pandas + requests + dateparser + httmock + ]; + + meta = with lib; { + description = "A python wrapper for the prometheus http api"; + homepage = "https://github.com/4n4nd/prometheus-api-client-python"; + licence = licences.mit; + }; +} \ No newline at end of file