3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #186033 from fabaff/aiobiketrax

python310Packages.aiobiketrax: init at 0.2.0
This commit is contained in:
Fabian Affolter 2022-08-11 09:06:19 +02:00 committed by GitHub
commit 975817aabb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 2 deletions

View file

@ -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 ];
};
}

View file

@ -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"

View file

@ -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 { };