Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 asttokens, 11 colorama, 12 executing, 13 pygments, 14 15 # tests 16 pytestCheckHook, 17}: 18 19buildPythonPackage rec { 20 pname = "icecream"; 21 version = "2.1.3"; 22 pyproject = true; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-CqSnwzdOw2FTodCPgeMIDoPYrB7v2X0vT+lUTo+bSd4="; 27 }; 28 29 postPatch = '' 30 substituteInPlace tests/test_icecream.py \ 31 --replace assertRegexpMatches assertRegex 32 ''; 33 34 nativeBuildInputs = [ setuptools ]; 35 36 propagatedBuildInputs = [ 37 asttokens 38 colorama 39 executing 40 pygments 41 ]; 42 43 nativeCheckInputs = [ pytestCheckHook ]; 44 45 disabledTests = [ 46 # icecream.icecream.NoSourceAvailableError 47 "testSingledispatchArgumentToString" 48 # AssertionError: assert [[('REPL (e.g...ion?', None)]] == [[('a', '1')], [('c', '3')]] 49 "testEnableDisable" 50 ]; 51 52 meta = with lib; { 53 description = "Little library for sweet and creamy print debugging"; 54 homepage = "https://github.com/gruns/icecream"; 55 license = licenses.mit; 56 maintainers = with maintainers; [ renatoGarcia ]; 57 }; 58}