forked from mirrors/nixpkgs
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
|
||||
, py-air-control, pytestCheckHook, pytestcov, pytestrunner, setuptools_scm }:
|
||||
{ buildPythonPackage, fetchPypi, flask, isPy27, lib, nixosTests
|
||||
, prometheus_client, py-air-control, pytestCheckHook, pytestcov, pytestrunner
|
||||
, setuptools_scm }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py-air-control-exporter";
|
||||
|
@ -15,6 +16,8 @@ buildPythonPackage rec {
|
|||
checkInputs = [ pytestCheckHook pytestcov pytestrunner ];
|
||||
propagatedBuildInputs = [ flask prometheus_client py-air-control ];
|
||||
|
||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) py-air-control; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Exports Air Quality Metrics to Prometheus.";
|
||||
homepage = "https://github.com/urbas/py-air-control-exporter";
|
||||
|
|
Loading…
Reference in a new issue