pkgs/ble-serial: init at 2.8.0

This commit is contained in:
Aaron Bieber 2024-07-24 08:19:37 -06:00
parent dcc3496f6f
commit 8cd9725f26
No known key found for this signature in database
3 changed files with 34 additions and 0 deletions

View File

@ -328,6 +328,8 @@
};
openevse =
upkgs.python312Packages.callPackage ./pkgs/openevse.nix { inherit upkgs; };
ble-serial =
upkgs.python312Packages.callPackage ./pkgs/ble-serial.nix { inherit upkgs; };
sliding-sync =
spkgs.callPackage ./pkgs/sliding-sync.nix { inherit spkgs; };
gokrazy = upkgs.callPackage ./pkgs/gokrazy.nix { inherit upkgs; };

View File

@ -404,6 +404,7 @@ in
(callPackage ../../pkgs/gokrazy.nix { })
(callPackage ../../pkgs/zutty.nix { })
#(python3Packages.callPackage ../../pkgs/watchmap.nix { })
(python3Packages.callPackage ../../pkgs/ble-serial.nix { })
restic
];

31
pkgs/ble-serial.nix Normal file
View File

@ -0,0 +1,31 @@
{ buildPythonPackage
, setuptools-scm
, fetchFromGitHub
, pyserial
, coloredlogs
, bleak
, ...
}:
buildPythonPackage rec {
pname = "ble-serial";
version = "2.8.0";
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pyserial
coloredlogs
bleak
];
buildInputs = [ setuptools-scm ];
src = fetchFromGitHub {
owner= "jakeler";
repo = "ble-serial";
rev = "v${version}";
hash = "sha256-KQCnrloBrY7hRt2cFcWiFUg5GgrdbXbcTCNcIuVryZw=";
};
}