diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2021-01-03 15:15:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 15:15:01 +0000 |
commit | e95ef6a681edcef426cb9148b5bd037d52601d4b (patch) | |
tree | 8ab94786ffd6dafcf8cb8d261687e48d4ed0d271 /pkgs/development | |
parent | 934a6745125de5bf76f73dd32cff492680d2eee9 (diff) | |
parent | 49d63b570e195b45aa714eb531dff87cdd1d71c1 (diff) |
Merge pull request #108123 from urbas/py-air-control-passthru-tests
python3Packages.py-air-control-exporter: add passthru.tests
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/py-air-control-exporter/default.nix | 7 |
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 0ec483c16f301..b5ffc1fc0a5d4 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"; |