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