1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5}:
6
7buildPythonPackage rec {
8 pname = "tahoma-api";
9 version = "0.0.17";
10
11 src = fetchFromGitHub {
12 owner = "philklei";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "sha256-YwOKSBlN4lNyS+hfdbQDUq1gc14FBof463ofxtUVLC4=";
16 };
17
18 propagatedBuildInputs = [ requests ];
19
20 # Project has no tests
21 doCheck = false;
22 pythonImportsCheck = [ "tahoma_api" ];
23
24 meta = with lib; {
25 description = "Python module to interface with Tahoma REST API";
26 homepage = "https://github.com/philklei/tahoma-api/";
27 license = with licenses; [ asl20 ];
28 maintainers = with maintainers; [ fab ];
29 };
30}