Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonApplication 3, fetchPypi 4}: 5 6buildPythonApplication rec { 7 pname = "badchars"; 8 version = "0.4.0"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "1xqki8qnfwl97d60xj69alyzwa1mnfbwki25j0vhvhb05varaxz2"; 13 }; 14 15 postPatch = '' 16 substituteInPlace setup.py --replace "argparse" "" 17 ''; 18 19 # no tests are available and it can't be imported (it's only a script, not a module) 20 doCheck = false; 21 22 meta = with lib; { 23 description = "HEX badchar generator for different programming languages"; 24 longDescription = '' 25 A HEX bad char generator to instruct encoders such as shikata-ga-nai to 26 transform those to other chars. 27 ''; 28 homepage = "https://github.com/cytopia/badchars"; 29 license = with licenses; [ mit ]; 30 maintainers = with maintainers; [ fab ]; 31 }; 32}