linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / aiorecollect / default.nix
blob53daf1f2269693fcd382feeef8147828a38754c1
1 { lib
2 , aiohttp
3 , aresponses
4 , async-timeout
5 , buildPythonPackage
6 , fetchFromGitHub
7 , freezegun
8 , poetry-core
9 , pytest-asyncio
10 , pytest-cov
11 , pytestCheckHook
14 buildPythonPackage rec {
15   pname = "aiorecollect";
16   version = "1.0.3";
17   format = "pyproject";
19   src = fetchFromGitHub {
20     owner = "bachya";
21     repo = pname;
22     rev = version;
23     sha256 = "sha256-S4HL8vJS/dTKsR5egKRSHqZYPClcET5Le06euHPyIkU=";
24   };
26   nativeBuildInputs = [ poetry-core ];
28   propagatedBuildInputs = [ aiohttp ];
30   checkInputs = [
31     aresponses
32     freezegun
33     pytest-asyncio
34     pytest-cov
35     pytestCheckHook
36   ];
38   # Ignore the examples as they are prefixed with test_
39   pytestFlagsArray = [ "--ignore examples/" ];
40   pythonImportsCheck = [ "aiorecollect" ];
42   meta = with lib; {
43     description = "Python library for the Recollect Waste API";
44     longDescription = ''
45       aiorecollect is a Python asyncio-based library for the ReCollect
46       Waste API. It allows users to programmatically retrieve schedules
47       for waste removal in their area, including trash, recycling, compost
48       and more.
49     '';
50     homepage = "https://github.com/bachya/aiorecollect";
51     license = with licenses; [ mit ];
52     maintainers = with maintainers; [ fab ];
53   };