python311Packages.pywaze: init at 0.3.0

This commit is contained in:
Fabian Affolter 2023-09-07 15:45:16 +02:00 committed by Martin Weinelt
parent f2e1a4b0cd
commit c5c4ba3280
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, httpx
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, respx
}:
buildPythonPackage rec {
pname = "pywaze";
version = "0.3.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "eifinger";
repo = "pywaze";
rev = "refs/tags/v${version}";
hash = "sha256-z/6eSgERHKV/5vjbRWcyrxAMNDIHvM3GUoo3xf+AhNY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov --cov-report term-missing --cov=src/pywaze " ""
'';
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
httpx
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
respx
];
pythonImportsCheck = [
"pywaze"
];
meta = with lib; {
description = "Module for calculating WAZE routes and travel times";
homepage = "https://github.com/eifinger/pywaze";
changelog = "https://github.com/eifinger/pywaze/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -10788,6 +10788,8 @@ self: super: with self; {
pywayland = callPackage ../development/python-modules/pywayland { };
pywaze = callPackage ../development/python-modules/pywaze { };
pywbem = callPackage ../development/python-modules/pywbem {
inherit (pkgs) libxml2;
};