2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
loguru,
|
|
|
|
pydantic,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyaussiebb";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.1.4";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yaleman";
|
|
|
|
repo = "aussiebb";
|
2023-03-30 22:05:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-IW2HraJbgvf0G1eRXNpnsPMWlLXi2P9DTyk+tG5Hc2U=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail 'requests = "^2.27.1"' 'requests = "*"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ poetry-core ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2022-02-10 20:34:41 +00:00
|
|
|
aiohttp
|
|
|
|
requests
|
|
|
|
loguru
|
2022-03-30 09:31:56 +00:00
|
|
|
pydantic
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require credentials and requests-testing
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aussiebb" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module for interacting with the Aussie Broadband APIs";
|
|
|
|
homepage = "https://github.com/yaleman/aussiebb";
|
2023-03-30 22:05:00 +00:00
|
|
|
changelog = "https://github.com/yaleman/pyaussiebb/blob/v${version}/CHANGELOG.md";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|