Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / py-air-control-exporter / default.nix
blob714cd613fcea326dd3a4c07c9b8e318a84dc99ce
1 { lib
2 , buildPythonPackage
3 , click
4 , fetchPypi
5 , flask
6 , isPy27
7 , nixosTests
8 , prometheus-client
9 , py-air-control
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "py-air-control-exporter";
15   version = "0.3.1";
16   format = "setuptools";
17   disabled = isPy27;
19   src = fetchPypi {
20     inherit pname version;
21     sha256 = "0cwhcyyjzc6wlj7jp5h7fcj1hl03wzrz1if3sg205kh2hfrzzlqq";
22   };
24   propagatedBuildInputs = [
25     click
26     flask
27     prometheus-client
28     py-air-control
29   ];
31   nativeCheckInputs = [
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [ "py_air_control_exporter" ];
37   passthru.tests = { inherit (nixosTests.prometheus-exporters) py-air-control; };
39   meta = with lib; {
40     description = "Exports Air Quality Metrics to Prometheus";
41     mainProgram = "py-air-control-exporter";
42     homepage = "https://github.com/urbas/py-air-control-exporter";
43     license = licenses.mit;
44     maintainers = with maintainers; [ urbas ];
45   };