diff --git a/pkgs/development/python-modules/foobot-async/default.nix b/pkgs/development/python-modules/foobot-async/default.nix new file mode 100644 index 000000000000..cd5be4ab0c2a --- /dev/null +++ b/pkgs/development/python-modules/foobot-async/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, aiohttp +, async-timeout +, aioresponses +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "foobot-async"; + version = "1.0.0"; + + disabled = pythonOlder "3.5"; + + src = fetchPypi { + pname = "foobot_async"; + inherit version; + sha256 = "fa557a22de925139cb4a21034ffdbcd01d28bf166c0e680eaf84a99206327f40"; + }; + + propagatedBuildInputs = [ + aiohttp + async-timeout + ]; + + checkInputs = [ + aioresponses + pytestCheckHook + ]; + + pythonImportsCheck = [ "foobot_async" ]; + + meta = with lib; { + description = "API Client for Foobot Air Quality Monitoring devices"; + homepage = "https://github.com/reefab/foobot_async"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a84a3adfb507..f5daad23e2ff 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2622,6 +2622,8 @@ in { fonttools = callPackage ../development/python-modules/fonttools { }; + foobot-async = callPackage ../development/python-modules/foobot-async { }; + foolscap = callPackage ../development/python-modules/foolscap { }; forbiddenfruit = callPackage ../development/python-modules/forbiddenfruit { };