Merge pull request #145467 from fabaff/pytraccar

python3Packages.pytraccar: init at 0.10.0
This commit is contained in:
Martin Weinelt 2021-11-11 13:52:33 +01:00 committed by GitHub
commit 11d1024b0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 55 additions and 1 deletions

View file

@ -0,0 +1,51 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-asyncio
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytraccar";
version = "0.10.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ludeeus";
repo = pname;
rev = version;
sha256 = "08f7rwvbc1h17lvgv9823ssd3p0vw7yzsg40lbkacgqqiv1hxfzs";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
pytestCheckHook
pytest-asyncio
];
postPatch = ''
# Upstream doesn't set version in the repo
substituteInPlace setup.py \
--replace 'version="master",' 'version="${version}",'
'';
pythonImportsCheck = [
"pytraccar"
];
meta = with lib; {
description = "Python library to handle device information from Traccar";
homepage = "https://github.com/ludeeus/pytraccar";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -890,7 +890,7 @@
"touchline" = ps: with ps; [ ]; # missing inputs: pytouchline
"tplink" = ps: with ps; [ aiohttp-cors ifaddr python-kasa ];
"tplink_lte" = ps: with ps; [ ]; # missing inputs: tp-connected
"traccar" = ps: with ps; [ aiohttp-cors stringcase ]; # missing inputs: pytraccar
"traccar" = ps: with ps; [ aiohttp-cors pytraccar stringcase ];
"trace" = ps: with ps; [ ];
"tractive" = ps: with ps; [ aiotractive ];
"tradfri" = ps: with ps; [ pytradfri ];

View file

@ -662,6 +662,7 @@ in with py.pkgs; buildPythonApplication rec {
"toon"
"totalconnect"
"tplink"
"traccar"
"trace"
"tradfri"
"transmission"

View file

@ -7720,6 +7720,8 @@ in {
cudaSupport = false;
};
pytraccar = callPackage ../development/python-modules/pytraccar { };
pytradfri = callPackage ../development/python-modules/pytradfri { };
pytrafikverket = callPackage ../development/python-modules/pytrafikverket { };