2018-08-20 19:43:41 +01:00
|
|
|
{ stdenv, lib, fetchPypi, buildPythonPackage }:
|
2017-09-29 13:57:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyserial";
|
2020-11-30 20:06:44 +00:00
|
|
|
version="3.5";
|
2017-09-29 13:57:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-30 20:06:44 +00:00
|
|
|
sha256 = "1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw";
|
2017-09-29 13:57:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = "python -m unittest discover -s test";
|
2018-08-20 19:43:41 +01:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin; # broken on darwin
|
2017-09-29 13:57:20 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pyserial/pyserial";
|
|
|
|
license = licenses.psfl;
|
|
|
|
description = "Python serial port extension";
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|