mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 16:30:11 +00:00
Diff: https://github.com/DAB-LABS/broadlink-async/compare/v1.2.0...v1.2.1 Changelog: https://github.com/DAB-LABS/broadlink-async/blob/v1.2.1/CHANGELOG.md
41 lines
938 B
Nix
41 lines
938 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "broadlink-async";
|
|
version = "1.2.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DAB-LABS";
|
|
repo = "broadlink-async";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-AZo0DVRDK6gyV67EUPGujmv73MuXKPi7QPjegGwsl5g=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ cryptography ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "broadlink_async" ];
|
|
|
|
meta = {
|
|
description = "Python API for controlling Broadlink devices";
|
|
homepage = "https://github.com/DAB-LABS/broadlink-async";
|
|
changelog = "https://github.com/DAB-LABS/broadlink-async/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
};
|
|
})
|