1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 aiohttp,
7 yarl,
8 hatchling,
9}:
10
11buildPythonPackage rec {
12 pname = "volvocarsapi";
13 version = "0.4.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.12";
17
18 src = fetchFromGitHub {
19 owner = "thomasddn";
20 repo = "volvo-cars-api";
21 tag = "v${version}";
22 hash = "sha256-mVr9bhWK4VWFnR6yfNVFYGMKRSv4XrYP2Wb3nlnDZ+E=";
23 };
24
25 build-system = [
26 hatchling
27 ];
28
29 dependencies = [
30 aiohttp
31 yarl
32 ];
33
34 # Package has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [
38 "volvocarsapi"
39 ];
40
41 meta = {
42 description = "Python client for the Volvo Cars API";
43 homepage = "https://github.com/thomasddn/volvo-cars-api";
44 changelog = "https://github.com/thomasddn/volvo-cars-api/releases/tag/v${version}";
45 license = lib.licenses.gpl3Only;
46 maintainers = [ lib.maintainers.jamiemagee ];
47 };
48}