Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchFromGitHub, influxdb, jsonpath-ng, paho-mqtt, py-expression-eval, pyaml, pycron, pytestCheckHook, schema, setuptools,}:
buildPythonPackage rec { pname = "mqtt2influxdb"; version = "1.5.2"; pyproject = true;
src = fetchFromGitHub { owner = "hardwario"; repo = "bch-mqtt2influxdb"; tag = "v${version}"; hash = "sha256-YDgMoxnH4vCCa7b857U6iVBhYLxk8ZjytGziryn24bg="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail "find_version('mqtt2influxdb', '__init__.py')," "'${version}'," '';
build-system = [ setuptools ];
dependencies = [ influxdb jsonpath-ng paho-mqtt py-expression-eval pyaml pycron schema ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mqtt2influxdb" ];
enabledTestPaths = [ "tests/test.py" ];
meta = with lib; { description = "Flexible MQTT to InfluxDB Bridge"; homepage = "https://github.com/hardwario/bch-mqtt2influxdb"; changelog = "https://github.com/hardwario/bch-mqtt2influxdb/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ cynerd ]; mainProgram = "mqtt2influxdb"; };}