diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/prometheus-pandas/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/prometheus-pandas/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/prometheus-pandas/default.nix b/nixpkgs/pkgs/development/python-modules/prometheus-pandas/default.nix new file mode 100644 index 000000000000..da6e9c1bccdd --- /dev/null +++ b/nixpkgs/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 ]; + }; +} |