Unverified Commit 9fa07f24 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.loqedapi: modernize

parent c055da6f
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -5,10 +5,9 @@
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  wheel,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "loqedapi";
  version = "2.1.11";
  pyproject = true;
@@ -16,16 +15,13 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "cpolhout";
    repo = "loqedAPI";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-DLnjIq0YQIspPWYP9KT0UZ9UPGg5SOjYuVM7XqCUqTo=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    aiohttp
    async-timeout
  ];
@@ -38,8 +34,8 @@ buildPythonPackage rec {
  meta = {
    description = "Module to interact with the Loqed Smart Door Lock API";
    homepage = "https://github.com/cpolhout/loqedAPI";
    changelog = "https://github.com/cpolhout/loqedAPI/releases/tag/v${version}";
    changelog = "https://github.com/cpolhout/loqedAPI/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ fab ];
  };
}
})