Commit ecd88597 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent a650b5d0
Loading
Loading
Loading
Loading
+8 −18
Original line number Diff line number Diff line
@@ -3,38 +3,28 @@
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  loguru,
  pdm-backend,
  pydantic,
  poetry-core,
  pythonOlder,
  requests,
}:

buildPythonPackage rec {
  pname = "pyaussiebb";
  version = "0.1.5";
  version = "0.1.6";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "yaleman";
    repo = "aussiebb";
    tag = "v${version}";
    hash = "sha256-ejaHweoRNrJJq6XGeTrENco8SPwwu6rSpGzksu0CsCY=";
    hash = "sha256-GD04Bq+uJs2JuTjtnGh6QKD4uFXwmGcOMB1Hu9yBlkI=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'requests = "^2.27.1"' 'requests = "*"'
  '';

  build-system = [ poetry-core ];
  build-system = [ pdm-backend ];

  dependencies = [
    aiohttp
    requests
    loguru
    pydantic
  ];

@@ -43,11 +33,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "aussiebb" ];

  meta = with lib; {
  meta = {
    description = "Module for interacting with the Aussie Broadband APIs";
    homepage = "https://github.com/yaleman/aussiebb";
    changelog = "https://github.com/yaleman/pyaussiebb/blob/v${version}/CHANGELOG.md";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
    changelog = "https://github.com/yaleman/pyaussiebb/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}