Merge pull request #145921 from fabaff/vehicle

python3Packages.vehicle: init at 0.2.0
This commit is contained in:
Fabian Affolter 2021-11-16 09:56:44 +01:00 committed by GitHub
commit 9502678f32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,61 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pydantic
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "vehicle";
version = "0.2.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-vehicle";
rev = "v${version}";
sha256 = "0yiavz5sw8fjrh6m3mr8gyds7h6vaja3xy1516ajgz0qvijhqylg";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
pydantic
yarl
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';
pythonImportsCheck = [
"vehicle"
];
meta = with lib; {
description = "Python client providing RDW vehicle information";
homepage = "https://github.com/frenck/python-wled";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -9696,6 +9696,8 @@ in {
vdirsyncer = callPackage ../development/python-modules/vdirsyncer { };
vehicle = callPackage ../development/python-modules/vehicle { };
vega = callPackage ../development/python-modules/vega { };
vega_datasets = callPackage ../development/python-modules/vega_datasets { };