Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / aioambient / default.nix
blob5e504ab87a02894e11ec413ff9dc8659cb8f08a2
1 { lib
2 , aiohttp
3 , aresponses
4 , asynctest
5 , buildPythonPackage
6 , fetchFromGitHub
7 , poetry-core
8 , pytest-asyncio
9 , pytest-cov
10 , pytestCheckHook
11 , python-engineio
12 , python-socketio
13 , pythonOlder
14 , websockets
17 buildPythonPackage rec {
18   pname = "aioambient";
19   version = "1.2.4";
20   format = "pyproject";
21   disabled = pythonOlder "3.6";
23   src = fetchFromGitHub {
24     owner = "bachya";
25     repo = pname;
26     rev = version;
27     sha256 = "sha256-uqvM5F0rpw+xeCXYl4lGMt3r0ugPsUmSvujmTJ9HABk=";
28   };
30   nativeBuildInputs = [ poetry-core ];
32   propagatedBuildInputs = [
33     aiohttp
34     python-engineio
35     python-socketio
36     websockets
37   ];
39   checkInputs = [
40     aresponses
41     asynctest
42     pytest-asyncio
43     pytest-cov
44     pytestCheckHook
45   ];
47   # Ignore the examples directory as the files are prefixed with test_
48   pytestFlagsArray = [ "--ignore examples/" ];
49   pythonImportsCheck = [ "aioambient" ];
51   meta = with lib; {
52     description = "Python library for the Ambient Weather API";
53     homepage = "https://github.com/bachya/aioambient";
54     license = with licenses; [ mit ];
55     maintainers = with maintainers; [ fab ];
56   };