Merge pull request #308535 from fabaff/pywaze-bump

python312Packages.pywaze: 1.0.0 -> 1.0.1
This commit is contained in:
Fabian Affolter 2024-05-02 20:21:22 +02:00 committed by GitHub
commit 055ed44f40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,18 +1,19 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, httpx
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, respx
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
httpx,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
respx,
}:
buildPythonPackage rec {
pname = "pywaze";
version = "1.0.0";
format = "pyproject";
version = "1.0.1";
pyproject = true;
disabled = pythonOlder "3.8";
@ -20,21 +21,17 @@ buildPythonPackage rec {
owner = "eifinger";
repo = "pywaze";
rev = "refs/tags/v${version}";
hash = "sha256-n5W8TdZZJmT7SECXE8k6WK2lmCcucA6eLm+LZpojERo=";
hash = "sha256-sWI9kUR0SSqE97an/YfvhQqmrK+OEWXRzG4MBYyp8Jg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov --cov-report term-missing --cov=src/pywaze " ""
--replace-fail "--cov --cov-report term-missing --cov=src/pywaze " ""
'';
nativeBuildInputs = [
hatchling
];
build-system = [ hatchling ];
propagatedBuildInputs = [
httpx
];
dependencies = [ httpx ];
nativeCheckInputs = [
pytest-asyncio
@ -42,9 +39,7 @@ buildPythonPackage rec {
respx
];
pythonImportsCheck = [
"pywaze"
];
pythonImportsCheck = [ "pywaze" ];
meta = with lib; {
description = "Module for calculating WAZE routes and travel times";