about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyhomepilot/default.nix
blob: 12c395ff954b9a2ec996621ed4813e79c8b4c743 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pyhomepilot";
  version = "0.0.3";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "nico0302";
    repo = pname;
    rev = "v${version}";
    sha256 = "00gmqx8cwsd15iccnlr8ypgqrdg6nw9ha518cfk7pyp8vhw1ziwy";
  };

  propagatedBuildInputs = [
    aiohttp
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "pyhomepilot" ];

  meta = with lib; {
    description = "Python module to communicate with the Rademacher HomePilot API";
    homepage = "https://github.com/nico0302/pyhomepilot";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}