depot/third_party/nixpkgs/pkgs/development/python-modules/freebox-api/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

48 lines
859 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, urllib3
}:
buildPythonPackage rec {
pname = "freebox-api";
version = "1.0.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "hacf-fr";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-60hIv35nNxXPFZy/JvG1O/ZkSMk65XDojUYP1QyfwXY=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
urllib3
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"freebox_api"
];
meta = with lib; {
description = "Python module to interact with the Freebox OS API";
homepage = "https://github.com/hacf-fr/freebox-api";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}