nixpkgs/pkgs/development/python-modules/micloud/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

42 lines
769 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 ];
};
}