python311Packages.pywaze: init at 0.3.0
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user