nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 61 lines 1.2 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 pytest-cov-stub, 12 pytestCheckHook, 13 syrupy, 14 yarl, 15}: 16 17buildPythonPackage rec { 18 pname = "vehicle"; 19 version = "2.2.2"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "frenck"; 24 repo = "python-vehicle"; 25 tag = "v${version}"; 26 hash = "sha256-MPK5Aim/kGXLMOapttkp5ygl8gIlHv0675sBBf6kyAA="; 27 }; 28 29 postPatch = '' 30 # Upstream doesn't set a version for the pyproject.toml 31 substituteInPlace pyproject.toml \ 32 --replace "0.0.0" "${version}" \ 33 ''; 34 35 build-system = [ poetry-core ]; 36 37 dependencies = [ 38 aiohttp 39 mashumaro 40 orjson 41 yarl 42 ]; 43 44 nativeCheckInputs = [ 45 aresponses 46 pytest-asyncio 47 pytest-cov-stub 48 pytestCheckHook 49 syrupy 50 ]; 51 52 pythonImportsCheck = [ "vehicle" ]; 53 54 meta = { 55 description = "Python client providing RDW vehicle information"; 56 homepage = "https://github.com/frenck/python-vehicle"; 57 changelog = "https://github.com/frenck/python-vehicle/releases/tag/v${version}"; 58 license = lib.licenses.mit; 59 maintainers = with lib.maintainers; [ fab ]; 60 }; 61}