python310Packages.aiomqtt: init at 1.0.0
This commit is contained in:
parent
1d971ef327
commit
f186738702
67
pkgs/development/python-modules/aiomqtt/default.nix
Normal file
67
pkgs/development/python-modules/aiomqtt/default.nix
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
|
||||||
|
# build-system
|
||||||
|
, poetry-core
|
||||||
|
, poetry-dynamic-versioning
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
, paho-mqtt
|
||||||
|
, typing-extensions
|
||||||
|
|
||||||
|
# tests
|
||||||
|
, anyio
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "aiomqtt";
|
||||||
|
version = "1.0.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sbtinstruments";
|
||||||
|
repo = "aiomqtt";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-ct4KIGxiC5m0yrid0tOa/snO9oErxbqhLLH9kD69aEQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# adds test marker for network access
|
||||||
|
url = "https://github.com/sbtinstruments/aiomqtt/commit/225c1bfc99bc6ff908bd03c1115963e43ab8a9e6.patch";
|
||||||
|
hash = "sha256-UMEwCoX2mWBA7+p+JujkH5fc9sd/2hbb28EJ0fN24z4=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
poetry-dynamic-versioning
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
paho-mqtt
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "aiomqtt" ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
anyio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"-m" "'not network'"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "The idiomatic asyncio MQTT client, wrapped around paho-mqtt";
|
||||||
|
homepage = "https://github.com/sbtinstruments/aiomqtt";
|
||||||
|
changelog = "https://github.com/sbtinstruments/aiomqtt/blob/${src.rev}/CHANGELOG.md";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -268,6 +268,8 @@ self: super: with self; {
|
||||||
|
|
||||||
aiomodernforms = callPackage ../development/python-modules/aiomodernforms { };
|
aiomodernforms = callPackage ../development/python-modules/aiomodernforms { };
|
||||||
|
|
||||||
|
aiomqtt = callPackage ../development/python-modules/aiomqtt { };
|
||||||
|
|
||||||
aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { };
|
aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { };
|
||||||
|
|
||||||
aiomusiccast = callPackage ../development/python-modules/aiomusiccast { };
|
aiomusiccast = callPackage ../development/python-modules/aiomusiccast { };
|
||||||
|
|
Loading…
Reference in a new issue