From c5484686510f405e500797590a64d65ebe04b02c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Aug 2022 03:07:55 +0200 Subject: [PATCH 1/2] python310Packages.auth0-python: adjust inputs --- .../python-modules/auth0-python/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/auth0-python/default.nix b/pkgs/development/python-modules/auth0-python/default.nix index 7aa062be6c95..fe52973c2cd7 100644 --- a/pkgs/development/python-modules/auth0-python/default.nix +++ b/pkgs/development/python-modules/auth0-python/default.nix @@ -1,5 +1,8 @@ { lib +, aiohttp +, aioresponses , buildPythonPackage +, callee , fetchPypi , mock , pyjwt @@ -17,7 +20,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "sha256-sXEWg6zrwMs8pCSloJtLL3o7ZAXTTiMXEgI7sDaogr4="; + hash = "sha256-sXEWg6zrwMs8pCSloJtLL3o7ZAXTTiMXEgI7sDaogr4="; }; propagatedBuildInputs = [ @@ -26,12 +29,15 @@ buildPythonPackage rec { ]; checkInputs = [ + aiohttp + aioresponses + callee mock pytestCheckHook ]; disabledTests = [ - # tries to ping websites (e.g. google.com) + # Tries to ping websites (e.g. google.com) "can_timeout" "test_options_are_created_by_default" "test_options_are_used_and_override" From 4739c04a1ca816505ba469e12b2bf745abb0d09d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Aug 2022 03:08:58 +0200 Subject: [PATCH 2/2] python310Packages.aiobiketrax: init at 0.2.0 --- .../python-modules/aiobiketrax/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/aiobiketrax/default.nix diff --git a/pkgs/development/python-modules/aiobiketrax/default.nix b/pkgs/development/python-modules/aiobiketrax/default.nix new file mode 100644 index 000000000000..41e96f26cc52 --- /dev/null +++ b/pkgs/development/python-modules/aiobiketrax/default.nix @@ -0,0 +1,53 @@ +{ lib +, aiohttp +, auth0-python +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pyjwt +, pytest-aiohttp +, pytestCheckHook +, python-dateutil +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aiobiketrax"; + version = "0.2.0"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "basilfx"; + repo = pname; + rev = "v${version}"; + hash = "sha256-zaHetU0ZG3xkYrO6qA4o+NX8V5td/E08tPEohEwMjh0="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + auth0-python + python-dateutil + pyjwt + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "aiobiketrax" + ]; + + meta = with lib; { + description = "Library for interacting with the PowUnity BikeTrax GPS tracker"; + homepage = "https://github.com/basilfx/aiobiketrax"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6f90e3ca8388..4e5a91a844b1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -329,6 +329,8 @@ in { aioitertools = callPackage ../development/python-modules/aioitertools { }; + aiobiketrax = callPackage ../development/python-modules/aiobiketrax { }; + aiobotocore = callPackage ../development/python-modules/aiobotocore { }; aiobroadlink = callPackage ../development/python-modules/aiobroadlink { };