diff options
author | Matej Urbas <matej.urbas@gmail.com> | 2020-11-21 20:58:49 +0000 |
---|---|---|
committer | Matej Urbas <matej.urbas@gmail.com> | 2020-12-05 11:44:41 +0000 |
commit | 26c3c9ccbb5d9508f745237cf89682f96292fd15 (patch) | |
tree | 91834502844309aaa26bf190bdbd19fb0a576b5b /pkgs/development/python-modules | |
parent | eefdca1bcf34e5cd7ba351dafd7a4f67b65321dc (diff) |
python3Packages.py-air-control-exporter: init at 0.1.4
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/py-air-control-exporter/default.nix | 24 |
1 files changed, 24 insertions, 0 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 new file mode 100644 index 000000000000..99a0df654fca --- /dev/null +++ b/pkgs/development/python-modules/py-air-control-exporter/default.nix @@ -0,0 +1,24 @@ +{ buildPythonPackage, fetchPypi, flask, isPy27, lib, prometheus_client +, py-air-control, pytestCheckHook, pytestcov, pytestrunner, setuptools_scm }: + +buildPythonPackage rec { + pname = "py-air-control-exporter"; + version = "0.1.4"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "1f13d3mlj6c3xvkclimahx7gpqqn8z56lh4kwy1d3gkjm7zs9zw9"; + }; + + 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 ]; + }; +} |