From b5ca64d3811b10e7d8db6202e4ca8d600079b936 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 19 Feb 2021 19:06:55 +0100 Subject: [PATCH] python3Packages.freebox-api: init at 0.0.9 --- .../python-modules/freebox-api/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/freebox-api/default.nix diff --git a/pkgs/development/python-modules/freebox-api/default.nix b/pkgs/development/python-modules/freebox-api/default.nix new file mode 100644 index 000000000000..2e5215e22223 --- /dev/null +++ b/pkgs/development/python-modules/freebox-api/default.nix @@ -0,0 +1,36 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, poetry +, pythonOlder +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "freebox-api"; + version = "0.0.9"; + format = "pyproject"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "hacf-fr"; + repo = pname; + rev = "v${version}"; + sha256 = "0qn7jqfbp850aqgfsxjfv14myi6idz6sf7024p6wpqpa2xk0vfiq"; + }; + + nativeBuildInputs = [ poetry ]; + + propagatedBuildInputs = [ aiohttp ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bdff2fce1522..44fb5372082e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2438,6 +2438,8 @@ in { fpylll = callPackage ../development/python-modules/fpylll { }; + freebox-api = callPackage ../development/python-modules/freebox-api { }; + freetype-py = callPackage ../development/python-modules/freetype-py { }; freezegun = if isPy27 then