diff --git a/pkgs/development/python-modules/bond-async/default.nix b/pkgs/development/python-modules/bond-async/default.nix new file mode 100644 index 000000000000..25430498e2dd --- /dev/null +++ b/pkgs/development/python-modules/bond-async/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, aiohttp +, aioresponses +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "bond-async"; + version = "0.1.20"; + + disabled = pythonOlder "3.7"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "bondhome"; + repo = "bond-async"; + rev = "v${version}"; + hash = "sha256-iBtbHS3VzSB6wfWDFq5UVd3++x3HtQbWQ6soPYfcHiM="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "bond_async" + ]; + + meta = { + description = "Asynchronous Python wrapper library over Bond Local API"; + homepage = "https://github.com/bondhome/bond-async"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1230ca3619ce..0351d6f1b6d4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1325,6 +1325,8 @@ in { bond-api = callPackage ../development/python-modules/bond-api { }; + bond-async = callPackage ../development/python-modules/bond-async { }; + booleanoperations = callPackage ../development/python-modules/booleanoperations { }; boolean-py = callPackage ../development/python-modules/boolean-py { };