python3Packages.traccar: 0.10.1 -> 1.0.0

This commit is contained in:
Martin Weinelt 2022-08-04 11:16:40 +02:00
parent 8f85662df0
commit e370a1d9be
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -3,6 +3,8 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pydantic
, pytestCheckHook
, pytest-asyncio
, pythonOlder
@ -10,8 +12,8 @@
buildPythonPackage rec {
pname = "pytraccar";
version = "0.10.1";
format = "setuptools";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -19,11 +21,16 @@ buildPythonPackage rec {
owner = "ludeeus";
repo = pname;
rev = version;
sha256 = "sha256-fqf7sckvq5GebgpDVVSgwHISu4/wntjc/WF9LFlXN2w=";
sha256 = "sha256-ngyLe6sbTTQ7n4WdV06OlQnn/vqkD+JUruyMYS1Ym+Q=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pydantic
];
checkInputs = [
@ -32,10 +39,14 @@ buildPythonPackage rec {
pytest-asyncio
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
postPatch = ''
# Upstream doesn't set version in the repo
substituteInPlace setup.py \
--replace 'version="master",' 'version="${version}",'
substituteInPlace pyproject.toml \
--replace 'version = "0"' 'version = "${version}"'
'';
pythonImportsCheck = [