13 buildPythonPackage rec {
14 pname = "openant-unstable";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-wDtHlkVyD7mMDXZ4LGMgatr9sSlQKVbgkYsKvHGr9Pc=";
27 nativeBuildInputs = [ setuptools ];
30 install -dm755 "$out/etc/udev/rules.d"
31 install -m644 resources/42-ant-usb-sticks.rules "$out/etc/udev/rules.d/99-ant-usb-sticks.rules"
34 propagatedBuildInputs = [ pyusb ];
36 optional-dependencies = {
37 serial = [ pyserial ];
38 influx = [ influxdb-client ];
41 nativeCheckInputs = [ pytestCheckHook ];
43 pythonImportsCheck = [ "openant" ];
46 homepage = "https://github.com/Tigge/openant";
47 description = "ANT and ANT-FS Python Library";
48 mainProgram = "openant";
49 license = licenses.mit;