2020-11-21 20:58:49 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, flask, isPy27, lib, prometheus_client
|
|
|
|
, py-air-control, pytestCheckHook, pytestcov, pytestrunner, setuptools_scm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-air-control-exporter";
|
2020-12-10 08:28:36 +00:00
|
|
|
version = "0.2.0";
|
2020-11-21 20:58:49 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-10 08:28:36 +00:00
|
|
|
sha256 = "2c1bce2423b7452388e35756bef098c123b3cd4a38e8b1302f7297a08e0a9eaa";
|
2020-11-21 20:58:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|