nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (830B)


      1 {
      2   lib,
      3   fetchFromGitea,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication rec {
      8   pname = "huami-token";
      9   version = "0.7.0";
     10   pyproject = true;
     11 
     12   src = fetchFromGitea {
     13     domain = "codeberg.org";
     14     owner = "argrento";
     15     repo = "huami-token";
     16     rev = "v${version}";
     17     hash = "sha256-nQiz1vrZz0sOoZFQaN9ZtzfDY3zn3Gk0jMdqORDDW3w=";
     18   };
     19 
     20   pythonRelaxDeps = [
     21     "requests"
     22     "types-requests"
     23   ];
     24 
     25   build-system = with python3Packages; [ flit ];
     26 
     27   dependencies = with python3Packages; [
     28     requests
     29     types-requests
     30   ];
     31 
     32   meta = {
     33     description = "Script to obtain watch or band bluetooth token from Huami servers";
     34     homepage = "https://github.com/argrento/huami-token";
     35     license = lib.licenses.mit;
     36     maintainers = [ lib.maintainers.sikmir ];
     37     mainProgram = "huami_token";
     38   };
     39 }