Skip to content

Commit b02dd83

Browse files
committed
python3Packages.meshtastic: use addBinToPathHook, remove with lib;
1 parent 8baf874 commit b02dd83

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pkgs/development/python-modules/meshtastic/default.nix

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
pyserial,
2424
pytap2,
2525
pytestCheckHook,
26+
addBinToPathHook,
2627
pyyaml,
2728
requests,
2829
riden,
@@ -90,13 +91,10 @@ buildPythonPackage rec {
9091
nativeCheckInputs = [
9192
hypothesis
9293
pytestCheckHook
94+
addBinToPathHook
9395
]
9496
++ lib.concatAttrValues optional-dependencies;
9597

96-
preCheck = ''
97-
export PATH="$PATH:$out/bin";
98-
'';
99-
10098
pythonImportsCheck = [ "meshtastic" ];
10199

102100
disabledTestPaths = [
@@ -120,11 +118,14 @@ buildPythonPackage rec {
120118
"test_TCPInterface"
121119
];
122120

123-
meta = with lib; {
121+
meta = {
124122
description = "Python API for talking to Meshtastic devices";
125123
homepage = "https://github.com/meshtastic/python";
126124
changelog = "https://github.com/meshtastic/python/releases/tag/${src.tag}";
127-
license = licenses.asl20;
128-
maintainers = with maintainers; [ fab ];
125+
license = lib.licenses.asl20;
126+
maintainers = with lib.maintainers; [
127+
drupol
128+
fab
129+
];
129130
};
130131
}

0 commit comments

Comments
 (0)