3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/prometheus-client/default.nix
2022-05-27 00:24:35 +02:00

37 lines
737 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "prometheus-client";
version = "0.14.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "prometheus";
repo = "client_python";
rev = "v${version}";
sha256 = "sha256-hvBdWOMDuzF91Hv4u//tF+z6la0JfiTQHlpS4TnWpmk=";
};
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;
maintainers = with maintainers; [ ];
};
}