about summary refs log tree commit diff
path: root/pkgs/development/python-modules/py-air-control-exporter/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/py-air-control-exporter/default.nix')
-rw-r--r--pkgs/development/python-modules/py-air-control-exporter/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/py-air-control-exporter/default.nix b/pkgs/development/python-modules/py-air-control-exporter/default.nix
index 0ec483c16f30..b5ffc1fc0a5d 100644
--- a/pkgs/development/python-modules/py-air-control-exporter/default.nix
+++ b/pkgs/development/python-modules/py-air-control-exporter/default.nix
@@ -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";