e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
39 lines
767 B
Nix
39 lines
767 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dropmqttapi";
|
|
version = "1.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ChandlerSystems";
|
|
repo = "dropmqttapi";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-5UnjIv57b4JV/vFyQpe+AS4e/fiE2y7ynZx5g6+oSyQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
# Module has no test
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dropmqttapi"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python MQTT API for DROP water management products";
|
|
homepage = "https://github.com/ChandlerSystems/dropmqttapi";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|