mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
python3Packages.busylight-*: update (#548189)
This commit is contained in:
@@ -12,21 +12,17 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "busylight-core";
|
||||
version = "2.2.0";
|
||||
version = "2.4.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JnyJny";
|
||||
repo = "busylight-core";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-as2IvaxyMjGKPGlBmz1cntAhbpuW+f3INtnNIcwpWh8=";
|
||||
repo = "busylight";
|
||||
tag = "busylight-core/v${finalAttrs.version}";
|
||||
hash = "sha256-m7ZxZkaWnkQV/KZ/xm3+uSfftL1V5Lxolx2lB63Mzyk=";
|
||||
rootDir = "packages/busylight-core";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "uv_build>=0.7.19,<0.8" "uv_build"
|
||||
'';
|
||||
|
||||
build-system = [ uv-build ];
|
||||
|
||||
dependencies = [
|
||||
@@ -44,8 +40,8 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
meta = {
|
||||
description = "Library for interacting programmatically with USB-connected LED lights";
|
||||
homepage = "https://github.com/JnyJny/busylight-core";
|
||||
changelog = "https://github.com/JnyJny/busylight-core/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
homepage = "https://github.com/JnyJny/busylight";
|
||||
changelog = "https://github.com/JnyJny/busylight/blob/${finalAttrs.src.tag}/${finalAttrs.src.rootDir}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
busylight-core,
|
||||
fastapi,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
hidapi,
|
||||
httpx,
|
||||
loguru,
|
||||
@@ -14,26 +13,27 @@
|
||||
pytestCheckHook,
|
||||
typer,
|
||||
udevCheckHook,
|
||||
uv-build,
|
||||
uvicorn,
|
||||
webcolors,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "busylight-for-humans";
|
||||
version = "0.48.0";
|
||||
version = "1.0.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JnyJny";
|
||||
repo = "busylight";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-5sQXW55P/iWhDWY6bGzN8IrWCJyrSvu2ObtIOolo2X0=";
|
||||
tag = "busylight-cli/v${finalAttrs.version}";
|
||||
hash = "sha256-h+YPrcf32SgzdQDYCeQlh4enzsXfsHr470W3tiFBO7g=";
|
||||
rootDir = "packages/busylight";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
build-system = [ uv-build ];
|
||||
|
||||
dependencies = [
|
||||
bitvector-for-humans
|
||||
busylight-core
|
||||
hidapi
|
||||
loguru
|
||||
@@ -53,13 +53,10 @@ buildPythonPackage (finalAttrs: {
|
||||
nativeCheckInputs = [
|
||||
httpx
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
udevCheckHook
|
||||
]
|
||||
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
|
||||
|
||||
disabledTestPaths = [ "tests/test_pydantic_models.py" ];
|
||||
|
||||
pythonImportsCheck = [ "busylight" ];
|
||||
|
||||
postInstall = ''
|
||||
@@ -70,7 +67,7 @@ buildPythonPackage (finalAttrs: {
|
||||
meta = {
|
||||
description = "Control USB connected presence lights from multiple vendors via the command-line or web API";
|
||||
homepage = "https://github.com/JnyJny/busylight";
|
||||
changelog = "https://github.com/JnyJny/busylight/releases/tag/${finalAttrs.src.tag}";
|
||||
changelog = "https://github.com/JnyJny/busylight/blob/${finalAttrs.src.tag}/${finalAttrs.src.rootDir}/CHANGELOG.md";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [
|
||||
das_j
|
||||
|
||||
Reference in New Issue
Block a user