diff options
Diffstat (limited to 'pkgs/development/python-modules/pytraccar/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/pytraccar/default.nix | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/pytraccar/default.nix b/pkgs/development/python-modules/pytraccar/default.nix index 3af3cb33e96d..c26ee031b887 100644 --- a/pkgs/development/python-modules/pytraccar/default.nix +++ b/pkgs/development/python-modules/pytraccar/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pytest-asyncio -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pytest-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-WTRqYw66iD4bbb1aWJfBI67+DtE1FE4oiuUKpfVqypE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # https://github.com/ludeeus/pytraccar/issues/31 doCheck = lib.versionOlder aiohttp.version "3.9.0"; @@ -38,9 +35,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; postPatch = '' # Upstream doesn't set version in the repo @@ -48,9 +43,7 @@ buildPythonPackage rec { --replace 'version = "0"' 'version = "${version}"' ''; - pythonImportsCheck = [ - "pytraccar" - ]; + pythonImportsCheck = [ "pytraccar" ]; meta = with lib; { description = "Python library to handle device information from Traccar"; |
