python313Packages.aioautomower: modernize
This commit is contained in:
@@ -14,31 +14,28 @@
|
||||
pytest-asyncio,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
python-dateutil,
|
||||
syrupy,
|
||||
time-machine,
|
||||
tzlocal,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "aioautomower";
|
||||
version = "2.7.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Thomas55555";
|
||||
repo = "aioautomower";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-O1z0dhVtKfIOr7TrXFiPElC11isD4aDDLmzc0+OX+B8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Upstream doesn't set a version
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
|
||||
--replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
@@ -78,8 +75,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Module to communicate with the Automower Connect API";
|
||||
homepage = "https://github.com/Thomas55555/aioautomower";
|
||||
changelog = "https://github.com/Thomas55555/aioautomower/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/Thomas55555/aioautomower/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user