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