Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 nose, 6 mock, 7 six, 8 isPyPy, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "sure"; 14 version = "2.0.1"; 15 format = "setuptools"; 16 17 disabled = isPyPy; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.cfg \ 26 --replace "rednose = 1" "" 27 ''; 28 29 propagatedBuildInputs = [ 30 mock 31 six 32 ]; 33 34 doCheck = pythonOlder "3.12"; # nose requires imp module 35 36 nativeCheckInputs = [ nose ]; 37 38 pythonImportsCheck = [ "sure" ]; 39 40 meta = with lib; { 41 description = "Utility belt for automated testing"; 42 mainProgram = "sure"; 43 homepage = "https://sure.readthedocs.io/"; 44 changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md"; 45 license = licenses.gpl3Plus; 46 maintainers = [ ]; 47 }; 48}