summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorOTABI Tomoya <tomoya.otabi@gmail.com>2023-11-03 19:38:16 +0900
committerGitHub <noreply@github.com>2023-11-03 19:38:16 +0900
commita1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b (patch)
tree4b86b0395ac0cd62fb80a13f96d8570cbf76d446 /pkgs
parent7bb282f637e49c90e06de3e667555a2fc6dc0fe7 (diff)
parent6583bd180ce559068bd10e6ea4d591c4856e3344 (diff)
downloadnixpkgs-a1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b.tar
nixpkgs-a1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b.tar.gz
nixpkgs-a1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b.tar.bz2
nixpkgs-a1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b.tar.lz
nixpkgs-a1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b.tar.xz
nixpkgs-a1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b.tar.zst
nixpkgs-a1edc424af3bf0a13f4556fe46ab6e98fa1e3e3b.zip
Merge pull request #264268 from viktornordling/master
python311Packages.prometheus-pandas: init at 0.3.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/prometheus-pandas/default.nix41
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/prometheus-pandas/default.nix b/pkgs/development/python-modules/prometheus-pandas/default.nix
new file mode 100644
index 00000000000..da6e9c1bccd
--- /dev/null
+++ b/pkgs/development/python-modules/prometheus-pandas/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, setuptools
+, numpy
+, pandas
+}:
+
+buildPythonPackage rec {
+  pname = "prometheus-pandas";
+  version = "0.3.2";
+  pyproject = true;
+
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-zysdlYPjvhextAfW4vvGN6mSPVUbWLV+AvQ1hGWCAbw=";
+  };
+
+  nativeBuildInputs = [
+    setuptools
+  ];
+
+  propagatedBuildInputs = [
+    numpy
+    pandas
+  ];
+
+  # There are no tests. :(
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "prometheus_pandas"
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/dcoles/prometheus-pandas";
+    license = licenses.mit;
+    description = "Pandas integration for Prometheus";
+    maintainers = with maintainers; [ viktornordling ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 733af009477..228cabf855d 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -9105,6 +9105,8 @@ self: super: with self; {
 
   prodict = callPackage ../development/python-modules/prodict { };
 
+  prometheus-pandas = callPackage ../development/python-modules/prometheus-pandas { };
+
   prophet = callPackage ../development/python-modules/prophet { };
 
   propka = callPackage ../development/python-modules/propka { };