depot/third_party/nixpkgs/pkgs/development/python-modules/micloud/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
778 B
Nix

{
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 ];
};
}