uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/development/python-modules/meshtastic/default.nix
Normal file
65
pkgs/development/python-modules/meshtastic/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, dotmap
|
||||
, fetchFromGitHub
|
||||
, pexpect
|
||||
, protobuf
|
||||
, pygatt
|
||||
, pypubsub
|
||||
, pyqrcode
|
||||
, pyserial
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, tabulate
|
||||
, pytap2
|
||||
, timeago
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "meshtastic";
|
||||
version = "1.2.95";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "meshtastic";
|
||||
repo = "Meshtastic-python";
|
||||
rev = version;
|
||||
sha256 = "sha256-CMw7PbM82AjbhrCYnRuxF9WFJqr6gvCEkTyG2vKM7FM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dotmap
|
||||
pexpect
|
||||
protobuf
|
||||
pygatt
|
||||
pypubsub
|
||||
pyqrcode
|
||||
pyserial
|
||||
pyyaml
|
||||
tabulate
|
||||
timeago
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytap2
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export PATH="$PATH:$out/bin";
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"meshtastic"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python API for talking to Meshtastic devices";
|
||||
homepage = "https://meshtastic.github.io/Meshtastic-python/";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue