nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit d914f286de6d677b0032883f40b79658d8895e77
parent 534a92dcb4a83ecbf063127845d68b12a1e601f6
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 14 Jul 2024 14:43:41 +0400

Add pytest-mqtt

Diffstat:
Mpkgs/default.nix | 2++
Apkgs/development/python-modules/pytest-docker-fixtures/default.nix | 32++++++++++++++++++++++++++++++++
Apkgs/mqtt/pytest-mqtt/default.nix | 34++++++++++++++++++++++++++++++++++
3 files changed, 68 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -108,6 +108,7 @@ lib.makeScope newScope ( portolan = callPackage ./development/python-modules/portolan { }; pyarrow_ops = callPackage ./development/python-modules/pyarrow_ops { }; pymbtiles = callPackage ./development/python-modules/pymbtiles { }; + pytest-docker-fixtures = callPackage ./development/python-modules/pytest-docker-fixtures { }; pytest-mp = callPackage ./development/python-modules/pytest-mp { }; pytest-shell-utilities = callPackage ./development/python-modules/pytest-shell-utilities { }; pytest-skip-markers = callPackage ./development/python-modules/pytest-skip-markers { }; @@ -421,6 +422,7 @@ lib.makeScope newScope ( mqtt-to-influxdb = callPackage ./mqtt/mqtt-to-influxdb { }; mqtt-to-influxdb-forwarder = callPackage ./mqtt/mqtt-to-influxdb-forwarder { }; nanosdk = callPackage ./mqtt/nanosdk { }; + pytest-mqtt = callPackage ./mqtt/pytest-mqtt { }; rmqtt = callPackage ./mqtt/rmqtt { }; rumqtt = callPackage ./mqtt/rumqtt { }; diff --git a/pkgs/development/python-modules/pytest-docker-fixtures/default.nix b/pkgs/development/python-modules/pytest-docker-fixtures/default.nix @@ -0,0 +1,32 @@ +{ + lib, + fetchFromGitHub, + python3Packages, +}: + +python3Packages.buildPythonPackage rec { + pname = "pytest-docker-fixtures"; + version = "1.3.19"; + + src = fetchFromGitHub { + owner = "guillotinaweb"; + repo = "pytest-docker-fixtures"; + rev = version; + hash = "sha256-9MR2gz69/oGNjuZNGTSe58j8ykOl6AWWII+XzLkri60="; + }; + + dependencies = with python3Packages; [ + docker + pytest + requests + ]; + + doCheck = false; + + meta = { + description = "Pytest docker fixtures"; + homepage = "https://github.com/guillotinaweb/pytest-docker-fixtures"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.sikmir ]; + }; +} diff --git a/pkgs/mqtt/pytest-mqtt/default.nix b/pkgs/mqtt/pytest-mqtt/default.nix @@ -0,0 +1,34 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + pytest-docker-fixtures, +}: + +python3Packages.buildPythonPackage rec { + pname = "pytest-mqtt"; + version = "0.4.1"; + pyproject = true; + disabled = python3Packages.pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "mqtt-tools"; + repo = "pytest-mqtt"; + rev = version; + hash = "sha256-DohQw10WCDlb9kJdMd9ql4mcELx4IhVSmoovLI6GI9k="; + }; + + build-system = with python3Packages; [ setuptools ]; + + dependencies = with python3Packages; [ + paho-mqtt + pytest-docker-fixtures + ]; + + meta = { + description = "pytest-mqtt supports testing systems based on MQTT"; + homepage = "https://github.com/mqtt-tools/pytest-mqtt"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.sikmir ]; + }; +}