Merge pull request #145467 from fabaff/pytraccar
python3Packages.pytraccar: init at 0.10.0
This commit is contained in:
commit
11d1024b0f
4 changed files with 55 additions and 1 deletions
51
pkgs/development/python-modules/pytraccar/default.nix
Normal file
51
pkgs/development/python-modules/pytraccar/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -890,7 +890,7 @@
|
||||||
"touchline" = ps: with ps; [ ]; # missing inputs: pytouchline
|
"touchline" = ps: with ps; [ ]; # missing inputs: pytouchline
|
||||||
"tplink" = ps: with ps; [ aiohttp-cors ifaddr python-kasa ];
|
"tplink" = ps: with ps; [ aiohttp-cors ifaddr python-kasa ];
|
||||||
"tplink_lte" = ps: with ps; [ ]; # missing inputs: tp-connected
|
"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; [ ];
|
"trace" = ps: with ps; [ ];
|
||||||
"tractive" = ps: with ps; [ aiotractive ];
|
"tractive" = ps: with ps; [ aiotractive ];
|
||||||
"tradfri" = ps: with ps; [ pytradfri ];
|
"tradfri" = ps: with ps; [ pytradfri ];
|
||||||
|
|
|
@ -662,6 +662,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||||
"toon"
|
"toon"
|
||||||
"totalconnect"
|
"totalconnect"
|
||||||
"tplink"
|
"tplink"
|
||||||
|
"traccar"
|
||||||
"trace"
|
"trace"
|
||||||
"tradfri"
|
"tradfri"
|
||||||
"transmission"
|
"transmission"
|
||||||
|
|
|
@ -7720,6 +7720,8 @@ in {
|
||||||
cudaSupport = false;
|
cudaSupport = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pytraccar = callPackage ../development/python-modules/pytraccar { };
|
||||||
|
|
||||||
pytradfri = callPackage ../development/python-modules/pytradfri { };
|
pytradfri = callPackage ../development/python-modules/pytradfri { };
|
||||||
|
|
||||||
pytrafikverket = callPackage ../development/python-modules/pytrafikverket { };
|
pytrafikverket = callPackage ../development/python-modules/pytrafikverket { };
|
||||||
|
|
Loading…
Reference in a new issue