blob: 156cf889185f17f39929c2b558edb23809f1491c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "pyserial";
version = "3.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-PHfgFBcN//vYFub/wgXphC77EL6fWOwW0+hnW0klzds=";
};
patches = [
./001-rfc2217-only-negotiate-on-value-change.patch
./002-rfc2217-timeout-setter-for-rfc2217.patch
];
doCheck = !stdenv.hostPlatform.isDarwin; # broken on darwin
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [
"-s"
"test"
];
pythonImportsCheck = [ "serial" ];
meta = with lib; {
description = "Python serial port extension";
homepage = "https://github.com/pyserial/pyserial";
license = licenses.bsd3;
maintainers = with maintainers; [ makefu ];
};
}
|