Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aioserial 3, buildPythonPackage 4, fetchPypi 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "phone-modem"; 10 version = "0.1.2"; 11 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 pname = "phone_modem"; 16 inherit version; 17 hash = "sha256-7NahK9l67MdT/dDVXsq+y0Z4cZxZ/WUW2kPpE4Wz6j0="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py \ 22 --replace "aioserial==1.3.0" "aioserial" 23 ''; 24 25 propagatedBuildInputs = [ 26 aioserial 27 ]; 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}