From d804c4393f5f8d98ba6621a0529926ee9390e9d9 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 18 Oct 2020 22:53:36 +0200 Subject: [PATCH 1/2] pythonPackages.pyaftership: init at 0.1.2 --- .../python-modules/pyaftership/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/pyaftership/default.nix diff --git a/pkgs/development/python-modules/pyaftership/default.nix b/pkgs/development/python-modules/pyaftership/default.nix new file mode 100644 index 00000000000..4deee467f84 --- /dev/null +++ b/pkgs/development/python-modules/pyaftership/default.nix @@ -0,0 +1,26 @@ +{ aiohttp, async-timeout, buildPythonPackage, fetchPypi, isPy3k, lib }: + +buildPythonPackage rec { + pname = "pyaftership"; + version = "0.1.2"; + + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "057dwzacc0lmsq00ipfbnxkq4rc2by8glmza6s8i6dzi1cc68v98"; + }; + + propagatedBuildInputs = [ aiohttp async-timeout ]; + + # No tests + doCheck = false; + pythonImportsCheck = [ "pyaftership.tracker" ]; + + meta = with lib; { + description = "Python wrapper package for the AfterShip API"; + homepage = "https://github.com/ludeeus/pyaftership"; + license = licenses.mit; + maintainers = with maintainers; [ jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6d2d7bed26f..aab9f760dba 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4760,6 +4760,8 @@ in { pyaes = callPackage ../development/python-modules/pyaes { }; + pyaftership = callPackage ../development/python-modules/pyaftership { }; + pyairvisual = callPackage ../development/python-modules/pyairvisual { }; pyalgotrade = callPackage ../development/python-modules/pyalgotrade { }; From ecaccf2d1a3cb316773a61e35cbcd82d6a0cd188 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 18 Oct 2020 22:56:57 +0200 Subject: [PATCH 2/2] home-assistant: regenerate component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 1f54f54483b..d6f08ffd918 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -11,7 +11,7 @@ "actiontec" = ps: with ps; [ ]; "adguard" = ps: with ps; [ adguardhome ]; "ads" = ps: with ps; [ pyads ]; - "aftership" = ps: with ps; [ ]; # missing inputs: pyaftership + "aftership" = ps: with ps; [ pyaftership ]; "agent_dvr" = ps: with ps; [ ]; # missing inputs: agent-py "air_quality" = ps: with ps; [ ]; "airly" = ps: with ps; [ ]; # missing inputs: airly