Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 34 lines 720 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k 2, colorama 3, coverage 4, termstyle 5, lxml 6, unidecode 7, mock 8, backports_shutil_get_terminal_size 9}: 10 11buildPythonPackage rec { 12 pname = "green"; 13 version = "3.0.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "17cfgq0s02p5cjrsvcicqxiq6kflahjsd9pm03f054x7lpvqi5cv"; 18 }; 19 20 propagatedBuildInputs = [ 21 colorama coverage termstyle unidecode lxml 22 ] ++ lib.optionals (!isPy3k) [ mock backports_shutil_get_terminal_size ]; 23 24 # let green run it's own test suite 25 checkPhase = '' 26 $out/bin/green green 27 ''; 28 29 meta = with lib; { 30 description = "Python test runner"; 31 homepage = https://github.com/CleanCut/green; 32 license = licenses.mit; 33 }; 34}