@@ -1,22 +1,24 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "intelhex";
|
||||
version = "2.1";
|
||||
version = "2.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0k5l1mn3gv1vb0jd24ygxksx8xqr57y1ivgyj37jsrwpzrp167kw";
|
||||
sha256 = "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchurl {
|
||||
url = https://github.com/bialix/intelhex/commit/f251aef214daa2116e15ff7f7dcec1639eb12d5b.patch;
|
||||
sha256 = "02i15qjmcz7mwbwvyj3agl5y7098rag2iwypdilkaadhbslsl9b9";
|
||||
# patch the tests to check for the correct version string (2.2.1)
|
||||
(fetchpatch {
|
||||
url = "https://patch-diff.githubusercontent.com/raw/bialix/intelhex/pull/26.patch";
|
||||
sha256 = "1f3f2cyf9ipb9zdifmjs8rqhg028dhy91vabxxn3l7br657s8r2l";
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
51
pkgs/development/python-modules/pc-ble-driver-py/default.nix
Normal file
51
pkgs/development/python-modules/pc-ble-driver-py/default.nix
Normal file
@@ -0,0 +1,51 @@
|
||||
{ stdenv, buildPythonPackage, fetchpatch, fetchFromGitHub,
|
||||
python, cmake, git, swig, boost, udev,
|
||||
setuptools, enum34, wrapt, future }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pc-ble-driver-py";
|
||||
version = "0.11.4";
|
||||
disabled = python.isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NordicSemiconductor";
|
||||
repo = "pc-ble-driver-py";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "0lgmcnrlcivmawmlcwnn4pdp6afdbnf3fyfgq22xzs6v72m9gp81";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake swig git setuptools ];
|
||||
buildInputs = [ boost udev ];
|
||||
propagatedBuildInputs = [ enum34 wrapt future ];
|
||||
|
||||
patches = [
|
||||
# build system expects case-insensitive file system
|
||||
(fetchpatch {
|
||||
url = "https://patch-diff.githubusercontent.com/raw/NordicSemiconductor/pc-ble-driver-py/pull/84.patch";
|
||||
sha256 = "0ibx5g2bndr5h9sfnx51bk9b62q4jvpdwhxadbnj3da8kvcz13cy";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# do not force static linking of boost
|
||||
sed -i /Boost_USE_STATIC_LIBS/d pc-ble-driver/cmake/*.cmake
|
||||
|
||||
cd python
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
pushd ../build
|
||||
cmake ..
|
||||
make -j $NIX_BUILD_CORES
|
||||
popd
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Bluetooth Low Energy nRF5 SoftDevice serialization";
|
||||
homepage = "https://github.com/NordicSemiconductor/pc-ble-driver-py";
|
||||
license = licenses.unfreeRedistributable;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
};
|
||||
}
|
||||
19
pkgs/development/python-modules/piccata/default.nix
Normal file
19
pkgs/development/python-modules/piccata/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, ipaddress }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "piccata";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "45f6c98c2ea809d445040888117f99bc3ee843490d86fecc5805ff5ea41508f7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ipaddress ];
|
||||
|
||||
meta = {
|
||||
description = "Simple CoAP (RFC7252) toolkit";
|
||||
homepage = "https://github.com/NordicSemiconductor/piccata";
|
||||
maintainers = with lib.maintainers; [ gebner ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/pyspinel/default.nix
Normal file
21
pkgs/development/python-modules/pyspinel/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ buildPythonPackage, fetchPypi, lib, future, pyserial, ipaddress }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyspinel";
|
||||
version = "1.0.0a3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0914a662d57a14bce9df21f22711b5c9b2fef37cf461be54ed35c6e229060fd4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyserial ipaddress future ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Interface to the OpenThread Network Co-Processor (NCP)";
|
||||
homepage = "https://github.com/openthread/pyspinel";
|
||||
maintainers = with lib.maintainers; [ gebner ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user