diff --git a/pkgs/development/python-modules/phone-modem/default.nix b/pkgs/development/python-modules/phone-modem/default.nix new file mode 100644 index 000000000000..969978b4884e --- /dev/null +++ b/pkgs/development/python-modules/phone-modem/default.nix @@ -0,0 +1,35 @@ +{ lib +, aioserial +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "phone-modem"; + version = "0.1.1"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + pname = "phone_modem"; + inherit version; + sha256 = "0kqa1ky5hjs9zdp3dnd8s9mz5p6z0al3hxxlgqdq9vnnpnv0lafy"; + }; + + propagatedBuildInputs = [ + aioserial + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "phone_modem" ]; + + meta = with lib; { + description = "Python module for receiving caller ID and call rejection"; + homepage = "https://github.com/tkdrob/phone_modem"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 06c8d01c4c73..fbabfaa9c37a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5477,6 +5477,8 @@ in { phik = callPackage ../development/python-modules/phik { }; + phone-modem = callPackage ../development/python-modules/phone-modem { }; + phonenumbers = callPackage ../development/python-modules/phonenumbers { }; micloud = callPackage ../development/python-modules/micloud { };