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