depot/third_party/nixpkgs/pkgs/development/python-modules/hatasmota/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

41 lines
797 B
Nix

{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, voluptuous
, pythonOlder
}:
buildPythonPackage rec {
pname = "hatasmota";
version = "0.5.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "emontnemery";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-1tCTkmhO9HyfdQuymTtFdCvxG9+Xs5/dEN5tB3/2fpQ=";
};
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 ];
};
}