summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/phone-modem/default.nix
blob: 567c14bb5ee4db1b8f26d2292bba0417b9e7ab61 (plain)
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
{
  lib,
  aioserial,
  buildPythonPackage,
  fetchPypi,
}:

buildPythonPackage rec {
  pname = "phone-modem";
  version = "0.1.2";
  format = "setuptools";

  src = fetchPypi {
    pname = "phone_modem";
    inherit version;
    hash = "sha256-7NahK9l67MdT/dDVXsq+y0Z4cZxZ/WUW2kPpE4Wz6j0=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "aioserial==1.3.0" "aioserial"
  '';

  propagatedBuildInputs = [ aioserial ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "phone_modem" ];

  meta = {
    description = "Python module for receiving caller ID and call rejection";
    homepage = "https://github.com/tkdrob/phone_modem";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}