2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-16 16:21:31 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchgit
|
|
|
|
, isPy3k
|
|
|
|
, pyusb
|
|
|
|
, pybluez
|
|
|
|
, pyfantom
|
|
|
|
, git
|
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
buildPythonPackage {
|
2018-10-16 16:21:31 +02:00
|
|
|
version = "unstable-20160819";
|
|
|
|
pname = "nxt-python";
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchgit {
|
2019-04-22 10:14:28 +02:00
|
|
|
url = "https://github.com/Eelviny/nxt-python";
|
2018-10-16 16:21:31 +02:00
|
|
|
rev = "479e20b7491b28567035f4cee294c4a2af629297";
|
|
|
|
sha256 = "0mcsajhgm2wy4iy2lhmyi3xibgmbixbchanzmlhsxk6qyjccn9r9";
|
|
|
|
branchName= "pyusb";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyusb pybluez pyfantom git ];
|
|
|
|
|
|
|
|
# Tests fail on Mac dependency
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-16 16:21:31 +02:00
|
|
|
description = "Python driver/interface for Lego Mindstorms NXT robot";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Eelviny/nxt-python";
|
2018-10-16 16:21:31 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|