Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 66 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, freezegun, poetry-core, pytest-asyncio, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "aiorecollect"; version = "2023.12.0"; format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "bachya"; repo = "aiorecollect"; tag = version; hash = "sha256-Rj0+r7eERLY5VzmuDQH/TeVLfmvmKwPqcvd1b/To0Ts="; };
postPatch = '' # this is not used directly by the project sed -i '/certifi =/d' pyproject.toml '';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ aresponses freezegun pytest-asyncio pytestCheckHook ];
disabledTestPaths = [ # Ignore the examples directory as the files are prefixed with test_. "examples/" ];
pythonImportsCheck = [ "aiorecollect" ];
meta = with lib; { description = "Python library for the Recollect Waste API"; longDescription = '' aiorecollect is a Python asyncio-based library for the ReCollect Waste API. It allows users to programmatically retrieve schedules for waste removal in their area, including trash, recycling, compost and more. ''; homepage = "https://github.com/bachya/aiorecollect"; changelog = "https://github.com/bachya/aiorecollect/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}