2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchPypi, buildPythonPackage }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyserial";
|
2020-12-03 08:41:04 +00:00
|
|
|
version="3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-03 08:41:04 +00:00
|
|
|
sha256 = "1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
patches = [
|
|
|
|
./001-rfc2217-only-negotiate-on-value-change.patch
|
|
|
|
./002-rfc2217-timeout-setter-for-rfc2217.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = "python -m unittest discover -s test";
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin; # broken on darwin
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/pyserial/pyserial";
|
|
|
|
license = licenses.psfl;
|
|
|
|
description = "Python serial port extension";
|
|
|
|
maintainers = with maintainers; [ makefu ];
|
|
|
|
};
|
|
|
|
}
|