nixpkgs/pkgs/development/python-modules/micloud/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
769 B
Nix
Raw Normal View History

2021-07-02 09:25:57 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
2022-01-05 13:25:36 +00:00
, pycryptodome
2021-07-02 09:25:57 +00:00
, requests
, tzlocal
}:
buildPythonPackage rec {
pname = "micloud";
version = "0.6";
format = "setuptools";
2021-07-02 09:25:57 +00:00
src = fetchFromGitHub {
owner = "Squachen";
repo = "micloud";
rev = "v_${version}";
hash = "sha256-IsNXFs1N+rKwqve2Pjp+wRTZCxHF4acEo6KyhsSKuqI=";
2021-07-02 09:25:57 +00:00
};
propagatedBuildInputs = [
click
2022-01-05 13:25:36 +00:00
pycryptodome
2021-07-02 09:25:57 +00:00
requests
tzlocal
];
# tests require credentials
doCheck = false;
pythonImportsCheck = [ "micloud" ];
meta = with lib; {
description = "Xiaomi cloud connect library";
mainProgram = "micloud";
2021-07-02 09:25:57 +00:00
homepage = "https://github.com/Squachen/micloud";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}