Merge pull request #145921 from fabaff/vehicle
python3Packages.vehicle: init at 0.2.0
This commit is contained in:
commit
9502678f32
2 changed files with 63 additions and 0 deletions
61
pkgs/development/python-modules/vehicle/default.nix
Normal file
61
pkgs/development/python-modules/vehicle/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9696,6 +9696,8 @@ in {
|
||||||
|
|
||||||
vdirsyncer = callPackage ../development/python-modules/vdirsyncer { };
|
vdirsyncer = callPackage ../development/python-modules/vdirsyncer { };
|
||||||
|
|
||||||
|
vehicle = callPackage ../development/python-modules/vehicle { };
|
||||||
|
|
||||||
vega = callPackage ../development/python-modules/vega { };
|
vega = callPackage ../development/python-modules/vega { };
|
||||||
|
|
||||||
vega_datasets = callPackage ../development/python-modules/vega_datasets { };
|
vega_datasets = callPackage ../development/python-modules/vega_datasets { };
|
||||||
|
|
Loading…
Reference in a new issue