mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
35 lines
798 B
Nix
35 lines
798 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, async_generator
|
|
, paho-mqtt
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asyncio_mqtt";
|
|
version = "0.10.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0s94dvgh1fazycppki5m6f9d60hc4ykhqfznlzpwl4dzknxplpsz";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
paho-mqtt
|
|
] ++ lib.optional (pythonOlder "3.7") async_generator;
|
|
|
|
doCheck = false; # no tests
|
|
|
|
pythonImportsCheck = [ "asyncio_mqtt" ];
|
|
|
|
meta = with lib; {
|
|
description = "Idomatic asyncio wrapper around paho-mqtt";
|
|
homepage = "https://github.com/sbtinstruments/asyncio-mqtt";
|
|
license = licenses.bsd3;
|
|
changelog = "https://github.com/sbtinstruments/asyncio-mqtt/blob/master/CHANGELOG.md";
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|