depot/third_party/nixpkgs/pkgs/development/python-modules/prometheus-client/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

29 lines
619 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "prometheus-client";
version = "0.11.0";
src = fetchFromGitHub {
owner = "prometheus";
repo = "client_python";
rev = "v${version}";
sha256 = "14swmy4dgpk6cyjsm2advgc2c8api7xaca1sl7swznblh5fyzgzg";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "prometheus_client" ];
meta = with lib; {
description = "Prometheus instrumentation library for Python applications";
homepage = "https://github.com/prometheus/client_python";
license = licenses.asl20;
};
}