This commit is contained in:
2025-07-02 15:48:57 +00:00
parent 6d490d8864
commit 69115bba71
8 changed files with 85 additions and 125 deletions

View File

@@ -5,5 +5,8 @@
npiperelay = pkgs.callPackage ./npiperelay {};
beets-originquery = pkgs.callPackage ./beets-originquery {};
beets-bpmanalyser = pkgs.callPackage ./beets-bpmanalyser {};
prometheus-api-client = pkgs.callPackage ./prometheus-api-client {};
prometheus-api-client = pkgs.callPackage ./prometheus-api-client {
python = pkgs.python3;
};
}

View File

@@ -1,31 +1,32 @@
{
python3Packages,
fetchurl,
lib,
{ lib
, fetchurl
, python
}:
with python3Packages;
buildPythonPackage rec {
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=";
};
doCheck = false;
pythonImportsCheck = ["prometheus_api_client"];
propagatedBuildInputs = [
matplotlib
numpy
pandas
requests
dateparser
httmock
];
python.pkgs.buildPythonPackage rec {
pname = "prometheus-api-client";
version = "0.5.4";
meta = with lib; {
description = "A python wrapper for the prometheus http api";
homepage = "https://github.com/4n4nd/prometheus-api-client-python";
licence = licences.mit;
};
}
src = fetchurl {
url = "https://pypi.org/packages/source/p/prometheus-api-client/prometheus-api-client-0.5.4.tar.gz";
sha256 = "sha256-OFaBB+GCqibyJZn3lCFeo93l7NPvFJRO72FO6qRsm2o=";
};
doCheck = false;
pythonImportsCheck = [ "prometheus_api_client" ];
propagatedBuildInputs = with python.pkgs; [
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";
license = licenses.mit;
};
}