nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 975 B view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "garages-amsterdam"; 11 version = "4.0.0"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.9"; 15 16 src = fetchFromGitHub { 17 owner = "klaasnicolaas"; 18 repo = "garages_amsterdam"; 19 rev = "v${version}"; 20 sha256 = "sha256-3YSCf5sUnq2+Bt7LA30XeIMg4zsaPF3K5SVzGZ68SbY="; 21 }; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace '"0.0.0"' '"${version}"' 26 ''; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 ]; 35 36 # The only test requires network access 37 doCheck = false; 38 39 pythonImportsCheck = [ 40 "garages_amsterdam" 41 ]; 42 43 meta = with lib; { 44 description = "Python client for getting garage occupancy in Amsterdam"; 45 homepage = "https://github.com/klaasnicolaas/python-garages-amsterdam"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}