nixpkgs/pkgs/development/python-modules/dropmqttapi/default.nix
2024-04-26 10:03:24 +02:00

37 lines
757 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "dropmqttapi";
version = "1.0.3";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "ChandlerSystems";
repo = "dropmqttapi";
rev = "refs/tags/v${version}";
hash = "sha256-njReF9Mu5E9o5WcbK60CCBWaIhZ3tpQHHlY/iEyyHGg=";
};
build-system = [ 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 ];
};
}