Commit 212e0356 authored by Jamie Magee's avatar Jamie Magee
Browse files

python3Packages.aiolichess: init at 1.2.0

parent 32cbbb03
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  aiohttp,
}:

buildPythonPackage (finalAttrs: {
  pname = "aiolichess";
  version = "1.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "aryanhasgithub";
    repo = "aiolichess";
    tag = "v${finalAttrs.version}";
    hash = "sha256-WCrvDNlq0i2FBD6Ouiue3BQcTuIV80Z8MT/5mOjTr3w=";
  };

  build-system = [ hatchling ];

  dependencies = [ aiohttp ];

  # upstream tests are empty
  doCheck = false;

  pythonImportsCheck = [ "aiolichess" ];

  meta = {
    description = "Async Python client for the Lichess REST API";
    homepage = "https://github.com/aryanhasgithub/aiolichess";
    changelog = "https://github.com/aryanhasgithub/aiolichess/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.gpl3Only;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -380,6 +380,8 @@ self: super: with self; {
  aiokem = callPackage ../development/python-modules/aiokem { };
  aiolichess = callPackage ../development/python-modules/aiolichess { };
  aiolifx = callPackage ../development/python-modules/aiolifx { };
  aiolifx-connection = callPackage ../development/python-modules/aiolifx-connection { };