at 24.11-pre 1.3 kB view raw
1{ 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, 15}: 16 17buildPythonPackage rec { 18 pname = "vehicle"; 19 version = "2.2.1"; 20 format = "pyproject"; 21 22 disabled = pythonOlder "3.11"; 23 24 src = fetchFromGitHub { 25 owner = "frenck"; 26 repo = "python-vehicle"; 27 rev = "refs/tags/v${version}"; 28 hash = "sha256-mu30v4iZoOYfQZc1P45UZaor6hf+i+gOvGcVGcQYzTo="; 29 }; 30 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 ''; 37 38 nativeBuildInputs = [ poetry-core ]; 39 40 propagatedBuildInputs = [ 41 aiohttp 42 mashumaro 43 orjson 44 yarl 45 ]; 46 47 nativeCheckInputs = [ 48 aresponses 49 pytest-asyncio 50 pytestCheckHook 51 syrupy 52 ]; 53 54 pythonImportsCheck = [ "vehicle" ]; 55 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 }; 63}