summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyflick/default.nix
blob: b6a9c2cf96d4604eb6cdabfb27eaee3f6e30213e (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
36
37
38
39
40
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp
, python-dateutil
}:

buildPythonPackage rec {
  pname = "pyflick";
  version = "0.0.2";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    pname = "PyFlick";
    inherit version;
    sha256 = "705c82d8caedfff19117c8859cc1b4f56e15ab8dbc0d64d63b79d8634007897f";
  };

  propagatedBuildInputs = [
    aiohttp
    python-dateutil
  ];

  # no tests implemented
  doCheck = false;

  pythonImportsCheck = [
    "pyflick"
    "pyflick.authentication"
  ];

  meta = with lib; {
    description = "Python API For Flick Electric in New Zealand";
    homepage = "https://github.com/ZephireNZ/PyFlick";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}