1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 bleak,
7}:
8
9buildPythonPackage rec {
10 pname = "pycycling";
11 version = "0.4.1";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-7vOjkXZ/IrsJ9JyqkbaeNcB59ZyfHQJLit5yPHoBUH4=";
17 };
18
19 build-system = [ setuptools ];
20
21 propagatedBuildInputs = [
22 bleak
23 ];
24
25 pythonImportsCheck = [ pname ];
26
27 meta = with lib; {
28 description = "Package for interacting with Bluetooth Low Energy (BLE) compatible bike trainers, power meters, radars and heart rate monitors";
29 homepage = "https://github.com/zacharyedwardbull/pycycling";
30 changelog = "https://github.com/zacharyedwardbull/pycycling/releases/tag/${version}";
31 license = licenses.mit;
32 maintainers = with maintainers; [ viraptor ];
33 };
34}