Unverified Commit 8fdbfc0c authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.aioautomower: 2.7.2 -> 2.7.3 (#488460)

parents 64bfd16b 5fcf025b
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -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.2";
  version = "2.7.3";
  pyproject = true;

  disabled = pythonOlder "3.11";

  src = fetchFromGitHub {
    owner = "Thomas55555";
    repo = "aioautomower";
    tag = "v${version}";
    hash = "sha256-fRfcdE76BJE7GHobZU7mYmmtnN4gBxNd5KofdE0Sm0Y=";
    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 ];
  };
}
})