b55a4ee46f
GitOrigin-RevId: e9158eca70ae59e73fae23be5d13d3fa0cfc78b4
24 lines
796 B
Nix
24 lines
796 B
Nix
{ buildPythonPackage, fetchPypi, flask, isPy27, lib, prometheus_client
|
|
, py-air-control, pytestCheckHook, pytestcov, pytestrunner, setuptools_scm }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-air-control-exporter";
|
|
version = "0.1.5";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "46eff1c801a299cf2ad37e6bd0c579449779cb6a47f1007264bfcabf12739f8b";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
checkInputs = [ pytestCheckHook pytestcov pytestrunner ];
|
|
propagatedBuildInputs = [ flask prometheus_client py-air-control ];
|
|
|
|
meta = with lib; {
|
|
description = "Exports Air Quality Metrics to Prometheus.";
|
|
homepage = "https://github.com/urbas/py-air-control-exporter";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ urbas ];
|
|
};
|
|
}
|