2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
urllib3,
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "freebox-api";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.1.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
format = "pyproject";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hacf-fr";
|
|
|
|
repo = pname;
|
2022-11-04 12:27:35 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-3i9I2RRRxLgyfzegnqjO4g+ad1v4phx6xa8HpWP1cck=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "urllib3" ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-10-21 18:38:19 +00:00
|
|
|
urllib3
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "freebox_api" ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to interact with the Freebox OS API";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "freebox_api";
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/hacf-fr/freebox-api";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/hacf-fr/freebox-api/releases/tag/v${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|