14 buildPythonPackage rec {
15 pname = "airthings-ble";
19 disabled = pythonOlder "3.9";
21 src = fetchFromGitHub {
23 repo = "airthings-ble";
24 rev = "refs/tags/${version}";
25 hash = "sha256-m2jsXLrj2yS2Wi2dSwyxBv/nXmU738gd5iJ1JVfakUg=";
29 substituteInPlace pyproject.toml \
30 --replace-fail "-v -Wdefault --cov=airthings_ble --cov-report=term-missing:skip-covered" ""
33 build-system = [ poetry-core ];
39 ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
41 nativeCheckInputs = [ pytestCheckHook ];
43 pythonImportsCheck = [ "airthings_ble" ];
46 description = "Library for Airthings BLE devices";
47 homepage = "https://github.com/vincegio/airthings-ble";
48 changelog = "https://github.com/vincegio/airthings-ble/releases/tag/${version}";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ fab ];