Merge pull request #303297 from fabaff/bring-api-rename

python312Packages.bring-api: 0.5.6 -> 0.7.0
This commit is contained in:
Fabian Affolter 2024-04-12 08:58:28 +02:00 committed by GitHub
commit 5ebf67744e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 54 additions and 48 deletions

View File

@ -0,0 +1,48 @@
{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
python-dotenv,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "bring-api";
version = "0.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "miaucl";
repo = "bring-api";
rev = "refs/tags/${version}";
hash = "sha256-fhZMn0v908VzV+JLuS8tM+BPKJBoj77vEh1pINL4Cco=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
python-dotenv
];
pythonImportsCheck = [ "bring_api" ];
meta = with lib; {
description = "Module to access the Bring! shopping lists API";
homepage = "https://github.com/miaucl/bring-api";
changelog = "https://github.com/miaucl/bring-api/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,45 +0,0 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "homeassistant-bring-api";
version = "0.5.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "miaucl";
repo = "homeassistant-bring-api";
rev = "refs/tags/${version}";
hash = "sha256-vfc4xKLeGF2FuBFwqU99qbkUDBK5Uz66S4F2ODRDPa8=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"homeassistant_bring_api"
];
meta = with lib; {
description = "Module to access the Bring! shopping lists API with Home Assistant";
homepage = "https://github.com/miaucl/homeassistant-bring-api";
changelog = "https://github.com/miaucl/homeassistant-bring-api/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -570,7 +570,8 @@
"brel_home" = ps: with ps; [
];
"bring" = ps: with ps; [
]; # missing inputs: bring-api
bring-api
];
"broadlink" = ps: with ps; [
broadlink
];
@ -6004,6 +6005,7 @@
"bond"
"bosch_shc"
"braviatv"
"bring"
"broadlink"
"brother"
"brottsplatskartan"

View File

@ -208,6 +208,7 @@ mapAliases ({
hcs_utils = hcs-utils; # added 2024-01-06
hdlparse = throw "hdlparse has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
hglib = python-hglib; # added 2023-10-13
homeassistant-bring-api = bring-api; # added 2024-04-11
homeassistant-pyozw = throw "homeassistant-pyozw has been removed, as it was packaged for home-assistant which has removed it as a dependency."; # added 2024-01-05
HTSeq = htseq; # added 2023-02-19
hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29

View File

@ -1730,6 +1730,8 @@ self: super: with self; {
brian2 = callPackage ../development/python-modules/brian2 { };
bring-api = callPackage ../development/python-modules/bring-api { };
broadbean = callPackage ../development/python-modules/broadbean { };
broadlink = callPackage ../development/python-modules/broadlink { };
@ -5379,8 +5381,6 @@ self: super: with self; {
home-assistant-bluetooth = callPackage ../development/python-modules/home-assistant-bluetooth { };
homeassistant-bring-api = callPackage ../development/python-modules/homeassistant-bring-api { };
home-assistant-chip-clusters = callPackage ../development/python-modules/home-assistant-chip-clusters { };
home-assistant-chip-core = callPackage ../development/python-modules/home-assistant-chip-core { };