python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / odp-amsterdam / default.nix
blobabe1e5d1cba3efaabb9725fc113748326bc4c478
2   lib,
3   aiohttp,
4   aresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   poetry-core,
8   pythonOlder,
9   pytest-asyncio,
10   pytestCheckHook,
11   pytz,
12   syrupy,
15 buildPythonPackage rec {
16   pname = "odp-amsterdam";
17   version = "6.0.2";
18   pyproject = true;
20   disabled = pythonOlder "3.11";
22   src = fetchFromGitHub {
23     owner = "klaasnicolaas";
24     repo = "python-odp-amsterdam";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-veBccNxqhqBYKUC5pdjZ1IOWUYUqiNK5pJq1L+8UCxA=";
27   };
29   postPatch = ''
30     substituteInPlace pyproject.toml \
31       --replace-fail '"0.0.0"' '"${version}"'
32     sed -i '/addopts/d' pyproject.toml
33   '';
35   build-system = [
36     poetry-core
37   ];
39   pythonRelaxDeps = [ "pytz" ];
41   dependencies = [
42     aiohttp
43     pytz
44   ];
46   nativeCheckInputs = [
47     aresponses
48     pytest-asyncio
49     pytestCheckHook
50     syrupy
51   ];
53   pythonImportsCheck = [ "odp_amsterdam" ];
55   meta = with lib; {
56     description = "Python client for getting garage occupancy in Amsterdam";
57     homepage = "https://github.com/klaasnicolaas/python-odp-amsterdam";
58     changelog = "https://github.com/klaasnicolaas/python-odp-amsterdam/releases/tag/v${version}";
59     license = licenses.mit;
60     maintainers = with maintainers; [ fab ];
61   };