forked from mirrors/nixpkgs
Merge pull request #186033 from fabaff/aiobiketrax
python310Packages.aiobiketrax: init at 0.2.0
This commit is contained in:
commit
975817aabb
53
pkgs/development/python-modules/aiobiketrax/default.nix
Normal file
53
pkgs/development/python-modules/aiobiketrax/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue