parent
2002a716ab
commit
508bb7f42e
@ -0,0 +1,29 @@ |
||||
{ 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; |
||||
}; |
||||
} |
@ -1,19 +0,0 @@ |
||||
{ lib, buildPythonPackage, fetchPypi }: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "prometheus_client"; |
||||
version = "0.11.0"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "3a8baade6cb80bcfe43297e33e7623f3118d660d41387593758e2fb1ea173a86"; |
||||
}; |
||||
|
||||
doCheck = false; |
||||
|
||||
meta = with lib; { |
||||
description = "Prometheus instrumentation library for Python applications"; |
||||
homepage = "https://github.com/prometheus/client_python"; |
||||
license = licenses.asl20; |
||||
}; |
||||
} |
Loading…
Reference in new issue