Personal-use NixOS configuration
1{
2 lib,
3 python3,
4 fetchFromGitea,
5}:
6
7python3.pkgs.buildPythonPackage rec {
8 pname = "huami-token";
9 version = "0.8.0-unstable";
10 pyproject = true;
11
12 src = fetchFromGitea {
13 domain = "codeberg.org";
14 owner = "argrento";
15 repo = "huami-token";
16 rev = "1b32658519d1f35cd3c4345bb9ced3ba6881bb56";
17 hash = "sha256-uDAwcaWdFxVwMw6/GAwYmiC2u8ogjpOo/b6p6/6ijKU=";
18 };
19
20 build-system = with python3.pkgs; [
21 hatchling
22 ];
23
24 dependencies = with python3.pkgs; [
25 loguru
26 pycryptodome
27 requests
28 ];
29
30 meta = {
31 description = "Script to obtain watch or band bluetooth token from Zepp servers";
32 homepage = "https://codeberg.org/argrento/huami-token";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ encode42 ];
35 };
36}