evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / vehicle / default.nix
blobba1f1d30fbbe81976aa44895c9071ef3a9351c9d
2   lib,
3   aiohttp,
4   aresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   mashumaro,
8   orjson,
9   poetry-core,
10   pytest-asyncio,
11   pytestCheckHook,
12   pythonOlder,
13   syrupy,
14   yarl,
17 buildPythonPackage rec {
18   pname = "vehicle";
19   version = "2.2.2";
20   format = "pyproject";
22   disabled = pythonOlder "3.11";
24   src = fetchFromGitHub {
25     owner = "frenck";
26     repo = "python-vehicle";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-MPK5Aim/kGXLMOapttkp5ygl8gIlHv0675sBBf6kyAA=";
29   };
31   postPatch = ''
32     # Upstream doesn't set a version for the pyproject.toml
33     substituteInPlace pyproject.toml \
34       --replace "0.0.0" "${version}" \
35       --replace "--cov" ""
36   '';
38   nativeBuildInputs = [ poetry-core ];
40   propagatedBuildInputs = [
41     aiohttp
42     mashumaro
43     orjson
44     yarl
45   ];
47   nativeCheckInputs = [
48     aresponses
49     pytest-asyncio
50     pytestCheckHook
51     syrupy
52   ];
54   pythonImportsCheck = [ "vehicle" ];
56   meta = with lib; {
57     description = "Python client providing RDW vehicle information";
58     homepage = "https://github.com/frenck/python-vehicle";
59     changelog = "https://github.com/frenck/python-vehicle/releases/tag/v${version}";
60     license = licenses.mit;
61     maintainers = with maintainers; [ fab ];
62   };