summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-01-14 14:43:22 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-01-14 14:43:22 +0100
commit2bf5042700a2c085c0b13dba22015a7fe3fda224 (patch)
tree8e82a3bf4da1c7fb63dd0790b8fe59ce01de8a04 /pkgs/development/python-modules
parent5eb7d1ed25f83c591d4764b345b337bd5422cb6d (diff)
python3Packages.amqtt: 0.10.0 -> unstable-2022-01-11
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/amqtt/default.nix37
1 files changed, 22 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/amqtt/default.nix b/pkgs/development/python-modules/amqtt/default.nix
index 892046908c4a..7458ca11e99d 100644
--- a/pkgs/development/python-modules/amqtt/default.nix
+++ b/pkgs/development/python-modules/amqtt/default.nix
@@ -2,9 +2,11 @@
, buildPythonPackage
, docopt
, fetchFromGitHub
+, fetchpatch
, hypothesis
, passlib
, poetry-core
+, pytest-logdog
, pytest-asyncio
, pytestCheckHook
, pythonOlder
@@ -15,24 +17,21 @@
buildPythonPackage rec {
pname = "amqtt";
- version = "0.10.0";
+ version = "unstable-2022-01-11";
format = "pyproject";
+
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Yakifo";
repo = pname;
- rev = "v${version}";
- sha256 = "sha256-27LmNR1KC8w3zRJ7YBlBolQ4Q70ScTPqypMCpU6fO+I=";
+ rev = "8961b8fff57007a5d9907b98bc555f0519974ce9";
+ hash = "sha256-3uwz4RSoa6KRC8mlVfeIMLPH6F2kOJjQjjXCrnVX0Jo=";
};
- postPatch = ''
- substituteInPlace pyproject.toml \
- --replace 'websockets = "^9.0"' 'websockets = "^10.0"' \
- --replace 'PyYAML = "^5.4.0"' 'PyYAML = "*"' \
- '';
-
- nativeBuildInputs = [ poetry-core ];
+ nativeBuildInputs = [
+ poetry-core
+ ];
propagatedBuildInputs = [
docopt
@@ -44,22 +43,30 @@ buildPythonPackage rec {
checkInputs = [
hypothesis
+ pytest-logdog
pytest-asyncio
pytestCheckHook
];
+ postPatch = ''
+ substituteInPlace pyproject.toml \
+ --replace 'PyYAML = "^5.4.0"' 'PyYAML = "*"'
+ '';
+
disabledTestPaths = [
# Test are not ported from hbmqtt yet
"tests/test_cli.py"
"tests/test_client.py"
];
- disabledTests = [
- # Requires network access
- "test_connect_tcp"
- ];
+ preCheck = ''
+ # Some tests need amqtt
+ export PATH=$out/bin:$PATH
+ '';
- pythonImportsCheck = [ "amqtt" ];
+ pythonImportsCheck = [
+ "amqtt"
+ ];
meta = with lib; {
description = "Python MQTT client and broker implementation";