about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/micloud/default.nix
blob: ab934962e216b147dbebae39bfaf6564f6760c4c (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
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, pycryptodome
, requests
, tzlocal
}:

buildPythonPackage rec {
  pname = "micloud";
  version = "0.6";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Squachen";
    repo = "micloud";
    rev = "v_${version}";
    hash = "sha256-IsNXFs1N+rKwqve2Pjp+wRTZCxHF4acEo6KyhsSKuqI=";
  };

  propagatedBuildInputs = [
    click
    pycryptodome
    requests
    tzlocal
  ];

  # tests require credentials
  doCheck = false;

  pythonImportsCheck = [ "micloud" ];

  meta = with lib; {
    description = "Xiaomi cloud connect library";
    mainProgram = "micloud";
    homepage = "https://github.com/Squachen/micloud";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}