python3Packages.pytraccar: init at 0.10.0

This commit is contained in:
Fabian Affolter 2021-11-11 10:04:25 +01:00
parent 2de888a972
commit 5c97298a87
2 changed files with 53 additions and 0 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

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