Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / odp-amsterdam / default.nix
bloba9a2770efd6b220efdf055b070348d9e41d87509
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pythonRelaxDepsHook
8 , pythonOlder
9 , pytest-asyncio
10 , pytestCheckHook
11 , pytz
14 buildPythonPackage rec {
15   pname = "odp-amsterdam";
16   version = "6.0.1";
17   pyproject = true;
19   disabled = pythonOlder "3.11";
21   src = fetchFromGitHub {
22     owner = "klaasnicolaas";
23     repo = "python-odp-amsterdam";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-teLjiclkbjlG226gMUgqc2IUEWqKcSm6xIekw+AQPU4=";
26   };
28   postPatch = ''
29     substituteInPlace pyproject.toml \
30       --replace-fail '"0.0.0"' '"${version}"'
31     sed -i '/addopts/d' pyproject.toml
32   '';
34   nativeBuildInputs = [
35     poetry-core
36     pythonRelaxDepsHook
37   ];
39   pythonRelaxDeps = [
40     "pytz"
41   ];
43   propagatedBuildInputs = [
44     aiohttp
45     pytz
46   ];
48   nativeCheckInputs = [
49     aresponses
50     pytest-asyncio
51     pytestCheckHook
52   ];
54   pythonImportsCheck = [
55     "odp_amsterdam"
56   ];
58   meta = with lib; {
59     description = "Python client for getting garage occupancy in Amsterdam";
60     homepage = "https://github.com/klaasnicolaas/python-odp-amsterdam";
61     changelog = "https://github.com/klaasnicolaas/python-odp-amsterdam/releases/tag/v${version}";
62     license = licenses.mit;
63     maintainers = with maintainers; [ fab ];
64   };