commit
5d465ee8bb
@ -1,22 +1,24 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, fetchurl
|
, fetchurl
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "intelhex";
|
pname = "intelhex";
|
||||||
version = "2.1";
|
version = "2.2.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0k5l1mn3gv1vb0jd24ygxksx8xqr57y1ivgyj37jsrwpzrp167kw";
|
sha256 = "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(fetchurl {
|
# patch the tests to check for the correct version string (2.2.1)
|
||||||
url = https://github.com/bialix/intelhex/commit/f251aef214daa2116e15ff7f7dcec1639eb12d5b.patch;
|
(fetchpatch {
|
||||||
sha256 = "02i15qjmcz7mwbwvyj3agl5y7098rag2iwypdilkaadhbslsl9b9";
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
33
pkgs/development/tools/misc/nrfutil/default.nix
Normal file
33
pkgs/development/tools/misc/nrfutil/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv, python2Packages, fetchFromGitHub }:
|
||||||
|
|
||||||
|
with python2Packages; buildPythonApplication rec {
|
||||||
|
pname = "nrfutil";
|
||||||
|
version = "5.2.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "NordicSemiconductor";
|
||||||
|
repo = "pc-nrfutil";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1hajjgz8r4fjbwqr22p5dvb6k83dpxf8k7mhx20gkbrrx9ivqh79";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pc-ble-driver-py six pyserial enum34 click ecdsa
|
||||||
|
protobuf tqdm piccata pyspinel intelhex pyyaml crcmod libusb1 ipaddress ];
|
||||||
|
|
||||||
|
checkInputs = [ nose behave ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# remove version bound on pyyaml
|
||||||
|
sed -i /pyyaml/d requirements.txt
|
||||||
|
|
||||||
|
mkdir test-reports
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Device Firmware Update tool for nRF chips";
|
||||||
|
homepage = "https://github.com/NordicSemiconductor/pc-nrfutil";
|
||||||
|
license = licenses.unfreeRedistributable;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ gebner ];
|
||||||
|
};
|
||||||
|
}
|
@ -9422,6 +9422,8 @@ in
|
|||||||
noweb = callPackage ../development/tools/literate-programming/noweb { };
|
noweb = callPackage ../development/tools/literate-programming/noweb { };
|
||||||
nuweb = callPackage ../development/tools/literate-programming/nuweb { tex = texlive.combined.scheme-small; };
|
nuweb = callPackage ../development/tools/literate-programming/nuweb { tex = texlive.combined.scheme-small; };
|
||||||
|
|
||||||
|
nrfutil = callPackage ../development/tools/misc/nrfutil { };
|
||||||
|
|
||||||
obelisk = callPackage ../development/tools/ocaml/obelisk { };
|
obelisk = callPackage ../development/tools/ocaml/obelisk { };
|
||||||
|
|
||||||
obuild = callPackage ../development/tools/ocaml/obuild { };
|
obuild = callPackage ../development/tools/ocaml/obuild { };
|
||||||
|
@ -595,6 +595,8 @@ in {
|
|||||||
|
|
||||||
pathlib = callPackage ../development/python-modules/pathlib { };
|
pathlib = callPackage ../development/python-modules/pathlib { };
|
||||||
|
|
||||||
|
pc-ble-driver-py = toPythonModule (callPackage ../development/python-modules/pc-ble-driver-py { });
|
||||||
|
|
||||||
pdf2image = callPackage ../development/python-modules/pdf2image { };
|
pdf2image = callPackage ../development/python-modules/pdf2image { };
|
||||||
|
|
||||||
pdfminer = callPackage ../development/python-modules/pdfminer_six { };
|
pdfminer = callPackage ../development/python-modules/pdfminer_six { };
|
||||||
@ -607,6 +609,8 @@ in {
|
|||||||
|
|
||||||
phonopy = callPackage ../development/python-modules/phonopy { };
|
phonopy = callPackage ../development/python-modules/phonopy { };
|
||||||
|
|
||||||
|
piccata = callPackage ../development/python-modules/piccata {};
|
||||||
|
|
||||||
pims = callPackage ../development/python-modules/pims { };
|
pims = callPackage ../development/python-modules/pims { };
|
||||||
|
|
||||||
plantuml = callPackage ../tools/misc/plantuml { };
|
plantuml = callPackage ../tools/misc/plantuml { };
|
||||||
@ -782,6 +786,8 @@ in {
|
|||||||
slurm = pkgs.slurm;
|
slurm = pkgs.slurm;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pyspinel = callPackage ../development/python-modules/pyspinel {};
|
||||||
|
|
||||||
pyssim = callPackage ../development/python-modules/pyssim { };
|
pyssim = callPackage ../development/python-modules/pyssim { };
|
||||||
|
|
||||||
pystache = callPackage ../development/python-modules/pystache { };
|
pystache = callPackage ../development/python-modules/pystache { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user