Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 27 lines 892 B view raw
1{ buildPythonPackage, fetchPypi, flask, isPy27, lib, nixosTests 2, prometheus_client, py-air-control, pytestCheckHook, pytestcov, pytestrunner 3, setuptools_scm }: 4 5buildPythonPackage rec { 6 pname = "py-air-control-exporter"; 7 version = "0.3.0"; 8 disabled = isPy27; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "ece2e446273542e5c0352c9d6e80d8279132c6ada3649c59e87a711448801a3b"; 13 }; 14 15 nativeBuildInputs = [ setuptools_scm ]; 16 checkInputs = [ pytestCheckHook pytestcov pytestrunner ]; 17 propagatedBuildInputs = [ flask prometheus_client py-air-control ]; 18 19 passthru.tests = { inherit (nixosTests.prometheus-exporters) py-air-control; }; 20 21 meta = with lib; { 22 description = "Exports Air Quality Metrics to Prometheus."; 23 homepage = "https://github.com/urbas/py-air-control-exporter"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ urbas ]; 26 }; 27}