nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 59 lines 1.2 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-asyncio, 9 pytestCheckHook, 10 pytz, 11 syrupy, 12}: 13 14buildPythonPackage rec { 15 pname = "odp-amsterdam"; 16 version = "6.1.2"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "klaasnicolaas"; 21 repo = "python-odp-amsterdam"; 22 tag = "v${version}"; 23 hash = "sha256-vamWelyEcwvYI5I9wmKk8kKc7j0OMer/BKgC0pbN4g0="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail '"0.0.0"' '"${version}"' 29 sed -i '/addopts/d' pyproject.toml 30 ''; 31 32 build-system = [ 33 poetry-core 34 ]; 35 36 pythonRelaxDeps = [ "pytz" ]; 37 38 dependencies = [ 39 aiohttp 40 pytz 41 ]; 42 43 nativeCheckInputs = [ 44 aresponses 45 pytest-asyncio 46 pytestCheckHook 47 syrupy 48 ]; 49 50 pythonImportsCheck = [ "odp_amsterdam" ]; 51 52 meta = { 53 description = "Python client for getting garage occupancy in Amsterdam"; 54 homepage = "https://github.com/klaasnicolaas/python-odp-amsterdam"; 55 changelog = "https://github.com/klaasnicolaas/python-odp-amsterdam/releases/tag/${src.tag}"; 56 license = lib.licenses.mit; 57 maintainers = with lib.maintainers; [ fab ]; 58 }; 59}