depot/third_party/nixpkgs/pkgs/development/python-modules/hatasmota/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

41 lines
795 B
Nix

{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, voluptuous
, pythonOlder
}:
buildPythonPackage rec {
pname = "hatasmota";
version = "0.6.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "emontnemery";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-8B3xdSvvxmbjpPk6aWHQTraf2J1oCBvP0/UxTxaN0jY=";
};
propagatedBuildInputs = [
attrs
voluptuous
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"hatasmota"
];
meta = with lib; {
description = "Python module to help parse and construct Tasmota MQTT messages";
homepage = "https://github.com/emontnemery/hatasmota";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}