1{
2 lib,
3 aioserial,
4 buildPythonPackage,
5 fetchPypi,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "phone-modem";
11 version = "0.1.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 pname = "phone_modem";
18 inherit version;
19 hash = "sha256-7NahK9l67MdT/dDVXsq+y0Z4cZxZ/WUW2kPpE4Wz6j0=";
20 };
21
22 postPatch = ''
23 substituteInPlace setup.py \
24 --replace "aioserial==1.3.0" "aioserial"
25 '';
26
27 propagatedBuildInputs = [ aioserial ];
28
29 # Project has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "phone_modem" ];
33
34 meta = with lib; {
35 description = "Python module for receiving caller ID and call rejection";
36 homepage = "https://github.com/tkdrob/phone_modem";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}