1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 pytz,
9}:
10
11buildPythonPackage rec {
12 pname = "pyclimacell";
13 version = "0.18.2";
14 format = "setuptools";
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "raman325";
19 repo = "pyclimacell";
20 rev = "v${version}";
21 hash = "sha256-jWHjnebg4Aar48gid7bB7XYXOQtSqbmVmASsZd0YoPc=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 pytz
27 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "pyclimacell" ];
32
33 meta = with lib; {
34 description = "Python client for ClimaCell API";
35 homepage = "https://github.com/raman325/pyclimacell";
36 license = with licenses; [ mit ];
37 maintainers = with maintainers; [ fab ];
38 };
39}