diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-10-03 08:30:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 08:30:45 +0200 |
commit | 16a23e65dc7c40a10653bf4a040f62e3af4ebecf (patch) | |
tree | ebf85406db509adae63d37c4981eada5b42bb654 /pkgs/development | |
parent | d0351514dd21a4f9208b1b750bd584b360354d44 (diff) | |
parent | e63a3267ca635b085d61ba130400f10bc4cd8aa5 (diff) | |
download | nixlib-16a23e65dc7c40a10653bf4a040f62e3af4ebecf.tar nixlib-16a23e65dc7c40a10653bf4a040f62e3af4ebecf.tar.gz nixlib-16a23e65dc7c40a10653bf4a040f62e3af4ebecf.tar.bz2 nixlib-16a23e65dc7c40a10653bf4a040f62e3af4ebecf.tar.lz nixlib-16a23e65dc7c40a10653bf4a040f62e3af4ebecf.tar.xz nixlib-16a23e65dc7c40a10653bf4a040f62e3af4ebecf.tar.zst nixlib-16a23e65dc7c40a10653bf4a040f62e3af4ebecf.zip |
Merge pull request #194078 from fabaff/ibeacon-ble-bump
python310Packages.ibeacon-ble: init at 0.7.3, python310Packages.kegtron-ble: init at 0.4.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/ibeacon-ble/default.nix | 51 | ||||
-rw-r--r-- | pkgs/development/python-modules/kegtron-ble/default.nix | 55 |
2 files changed, 106 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ibeacon-ble/default.nix b/pkgs/development/python-modules/ibeacon-ble/default.nix new file mode 100644 index 000000000000..ad58a7153569 --- /dev/null +++ b/pkgs/development/python-modules/ibeacon-ble/default.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, home-assistant-bluetooth +, poetry-core +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "ibeacon-ble"; + version = "0.7.3"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "Bluetooth-Devices"; + repo = pname; + rev = "v${version}"; + hash = "sha256-+DPbIIarEAaH1bNzo+FvLp0QpNUPhaJ8nPLdKJKfz0k="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + home-assistant-bluetooth + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=ibeacon_ble --cov-report=term-missing:skip-covered" "" + ''; + + pythonImportsCheck = [ + "ibeacon_ble" + ]; + + meta = with lib; { + description = "Library for iBeacon BLE devices"; + homepage = "https://github.com/Bluetooth-Devices/ibeacon-ble"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/kegtron-ble/default.nix b/pkgs/development/python-modules/kegtron-ble/default.nix new file mode 100644 index 000000000000..4af4817d7f84 --- /dev/null +++ b/pkgs/development/python-modules/kegtron-ble/default.nix @@ -0,0 +1,55 @@ +{ lib +, bluetooth-data-tools +, bluetooth-sensor-state-data +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytestCheckHook +, pythonOlder +, sensor-state-data +}: + +buildPythonPackage rec { + pname = "kegtron-ble"; + version = "0.4.0"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "Bluetooth-Devices"; + repo = pname; + rev = "v${version}"; + hash = "sha256-O5I5shW8nL2RAQptS2Bp/GI/4L6o0xXXmwYvRq0MM8o="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + bluetooth-data-tools + bluetooth-sensor-state-data + sensor-state-data + ]; + + checkInputs = [ + pytestCheckHook + ]; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=kegtron_ble --cov-report=term-missing:skip-covered" "" + ''; + + pythonImportsCheck = [ + "kegtron_ble" + ]; + + meta = with lib; { + description = "Library for Kegtron BLE devices"; + homepage = "https://github.com/Bluetooth-Devices/kegtron-ble"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |