Merge pull request #108123 from urbas/py-air-control-passthru-tests
python3Packages.py-air-control-exporter: add passthru.tests
This commit is contained in:
commit
e95ef6a681
|
@ -1,5 +1,6 @@
|
||||||
{ buildPythonPackage, fetchPypi, flask, isPy27, lib, prometheus_client
|
{ buildPythonPackage, fetchPypi, flask, isPy27, lib, nixosTests
|
||||||
, py-air-control, pytestCheckHook, pytestcov, pytestrunner, setuptools_scm }:
|
, prometheus_client, py-air-control, pytestCheckHook, pytestcov, pytestrunner
|
||||||
|
, setuptools_scm }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "py-air-control-exporter";
|
pname = "py-air-control-exporter";
|
||||||
|
@ -15,6 +16,8 @@ buildPythonPackage rec {
|
||||||
checkInputs = [ pytestCheckHook pytestcov pytestrunner ];
|
checkInputs = [ pytestCheckHook pytestcov pytestrunner ];
|
||||||
propagatedBuildInputs = [ flask prometheus_client py-air-control ];
|
propagatedBuildInputs = [ flask prometheus_client py-air-control ];
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) py-air-control; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Exports Air Quality Metrics to Prometheus.";
|
description = "Exports Air Quality Metrics to Prometheus.";
|
||||||
homepage = "https://github.com/urbas/py-air-control-exporter";
|
homepage = "https://github.com/urbas/py-air-control-exporter";
|
||||||
|
|
Loading…
Reference in New Issue