diff options
-rw-r--r-- | pkgs/development/python-modules/aiozoneinfo/default.nix | 49 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiozoneinfo/default.nix b/pkgs/development/python-modules/aiozoneinfo/default.nix new file mode 100644 index 0000000000000..4f66cb62d444f --- /dev/null +++ b/pkgs/development/python-modules/aiozoneinfo/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + tzdata, +}: + +buildPythonPackage rec { + pname = "aiozoneinfo"; + version = "0.1.0"; + pyproject = true; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "bluetooth-devices"; + repo = "aiozoneinfo"; + rev = "refs/tags/v${version}"; + hash = "sha256-gsU7dLLnV+KayfFcuhdcNZPk/XZHGhr6WXOQCIJvUHk="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "--cov=aiozoneinfo --cov-report=term-missing:skip-covered" "" + ''; + + build-system = [ poetry-core ]; + + dependencies = [ tzdata ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "aiozoneinfo" ]; + + meta = with lib; { + description = "Tools to fetch zoneinfo with asyncio"; + homepage = "https://github.com/bluetooth-devices/aiozoneinfo"; + changelog = "https://github.com/bluetooth-devices/aiozoneinfo/blob/${version}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d20910a5302cf..16b8ff5cb46d0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -463,6 +463,8 @@ self: super: with self; { aiozeroconf = callPackage ../development/python-modules/aiozeroconf { }; + aiozoneinfo = callPackage ../development/python-modules/aiozoneinfo { }; + airium = callPackage ../development/python-modules/airium { }; airly = callPackage ../development/python-modules/airly { }; |