at master 876 B view raw
1{ 2 stdenv, 3 lib, 4 buildPythonPackage, 5 fetchPypi, 6 bash, 7 which, 8}: 9 10buildPythonPackage rec { 11 version = "0.7"; 12 format = "setuptools"; 13 pname = "cram"; 14 15 nativeCheckInputs = [ which ]; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"; 20 }; 21 22 postPatch = '' 23 patchShebangs scripts/cram 24 substituteInPlace tests/test.t \ 25 --replace "/bin/bash" "${bash}/bin/bash" 26 ''; 27 28 checkPhase = '' 29 scripts/cram tests 30 ''; 31 32 meta = { 33 description = "Simple testing framework for command line applications"; 34 mainProgram = "cram"; 35 homepage = "https://bitheap.org/cram/"; 36 license = lib.licenses.gpl2Plus; 37 maintainers = with lib.maintainers; [ jluttine ]; 38 # Tests fail on i686: https://hydra.nixos.org/build/52896671/nixlog/4 39 broken = stdenv.hostPlatform.isi686; 40 }; 41}