python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / aioflo / default.nix
bloba67453821a8d031454dd55fad32c34bc57a0b817
2   lib,
3   aiohttp,
4   aresponses,
5   buildPythonPackage,
6   fetchFromGitHub,
7   fetchpatch,
8   poetry-core,
9   pytest-aiohttp,
10   pytest-asyncio,
11   pytestCheckHook,
12   pythonOlder,
15 buildPythonPackage rec {
16   pname = "aioflo";
17   version = "2021.11.0";
18   pyproject = true;
20   disabled = pythonOlder "3.9";
22   src = fetchFromGitHub {
23     owner = "bachya";
24     repo = "aioflo";
25     rev = "refs/tags/${version}";
26     hash = "sha256-7NrOoc1gi8YzZaKvCnHnzAKPlMnMhqxjdyZGN5H/8TQ=";
27   };
29   patches = [
30     (fetchpatch {
31       # Clean-up, https://github.com/bachya/aioflo/pull/65
32       name = "clean-up-build-dependencies.patch";
33       url = "https://github.com/bachya/aioflo/commit/f38d3f6427777ab0eeb56177943679e2570f0634.patch";
34       hash = "sha256-iLgklhEZ61rrdzQoO6rp1HGZcqLsqGNitwIiPNLNHQ4=";
35     })
36   ];
38   build-system = [ poetry-core ];
40   dependencies = [ aiohttp ];
42   __darwinAllowLocalNetworking = true;
44   nativeCheckInputs = [
45     aresponses
46     pytest-aiohttp
47     pytest-asyncio
48     pytestCheckHook
49   ];
51   pythonImportsCheck = [ "aioflo" ];
53   disabledTests = [
54     # test is out-dated
55     "test_system_modes"
56   ];
58   meta = with lib; {
59     description = "Python library for Flo by Moen Smart Water Detectors";
60     homepage = "https://github.com/bachya/aioflo";
61     changelog = "https://github.com/bachya/aioflo/releases/tag/${version}";
62     license = licenses.mit;
63     maintainers = with maintainers; [ fab ];
64   };