depot/third_party/nixpkgs/pkgs/development/python-modules/freebox-api/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

48 lines
865 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
];
nativeCheckInputs = [
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 ];
};
}