10 buildPythonPackage rec {
13 format = "setuptools";
15 # Supports Python 2.7 and 3.4+
16 disabled = isPy3k && pythonOlder "3.4";
19 inherit pname version;
20 hash = "sha256-PHfgFBcN//vYFub/wgXphC77EL6fWOwW0+hnW0klzds=";
24 ./001-rfc2217-only-negotiate-on-value-change.patch
25 ./002-rfc2217-timeout-setter-for-rfc2217.patch
28 doCheck = !stdenv.hostPlatform.isDarwin; # broken on darwin
30 nativeCheckInputs = [ unittestCheckHook ];
32 unittestFlagsArray = [ "-s" "test" ];
34 pythonImportsCheck = [
39 description = "Python serial port extension";
40 homepage = "https://github.com/pyserial/pyserial";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ makefu ];