Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bd282ba93da6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c3b4c131df64
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Apr 27, 2020

  1. Copy the full SHA
    9c716aa View commit details
  2. Merge pull request #86064 from georgewhewell/init-bluepy

    pythonPackages.bluepy: init at 1.3.0
    Mic92 authored Apr 27, 2020
    Copy the full SHA
    c3b4c13 View commit details
Showing with 37 additions and 0 deletions.
  1. +35 −0 pkgs/development/python-modules/bluepy/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/bluepy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pkg-config
, glib
}:

buildPythonPackage rec {
pname = "bluepy";
version = "1.3.0";

src = fetchPypi {
inherit pname version;
sha256 = "1v0wjy1rz0rbwghr1z3xhdm06lqn9iig6vr5j2wmymh3w6pysw9a";
};

buildInputs = [ glib ];
nativeBuildInputs = [ pkg-config ];

# tests try to access hardware
checkPhase = ''
$out/bin/blescan --help > /dev/null
$out/bin/sensortag --help > /dev/null
$out/bin/thingy52 --help > /dev/null
'';
pythonImportsCheck = [ "bluepy" ];

meta = with stdenv.lib; {
description = "Python interface to Bluetooth LE on Linux";
homepage = "https://github.com/IanHarvey/bluepy";
maintainers = with maintainers; [ georgewhewell ];
license = licenses.gpl2;
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -518,6 +518,8 @@ in {

blivet = callPackage ../development/python-modules/blivet { };

bluepy = callPackage ../development/python-modules/bluepy { };

boltons = callPackage ../development/python-modules/boltons { };

bravia-tv = callPackage ../development/python-modules/bravia-tv { };