From 6c89269afc1938b706e6bab3aa16e40064b6e773 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 24 Apr 2022 18:53:56 +0200 Subject: [PATCH 1/2] python3Packages.fivem-api: init at 0.1.2 --- .../python-modules/fivem-api/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/fivem-api/default.nix diff --git a/pkgs/development/python-modules/fivem-api/default.nix b/pkgs/development/python-modules/fivem-api/default.nix new file mode 100644 index 000000000000..aef6fc342129 --- /dev/null +++ b/pkgs/development/python-modules/fivem-api/default.nix @@ -0,0 +1,42 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchPypi +, pythonOlder +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "fivem-api"; + version = "0.1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-6llrMGWbDRmysEw+B6B115hLS5xlktQEXiSHzPLbV5s="; + }; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "fivem" + ]; + + meta = with lib; { + description = "Module for interacting with FiveM servers"; + homepage = "https://github.com/Sander0542/fivem-api"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e2a37a9419cf..17416c8a3be0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2930,6 +2930,8 @@ in { fitbit = callPackage ../development/python-modules/fitbit { }; + fivem-api = callPackage ../development/python-modules/fivem-api { }; + fixerio = callPackage ../development/python-modules/fixerio { }; fixtures = callPackage ../development/python-modules/fixtures { }; From e883c03703f958ddd4599fa96331a7c9c5891ba6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 24 Apr 2022 18:55:24 +0200 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 90a7259afe65..ca2a0488e45c 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -822,7 +822,8 @@ fitbit ]; "fivem" = ps: with ps; [ - ]; # missing inputs: fivem-api + fivem-api + ]; "fixer" = ps: with ps; [ fixerio ]; @@ -3281,6 +3282,7 @@ "filter" "fireservicerota" "firmata" + "fivem" "fjaraskupan" "flic" "flick_electric"