Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 56 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pytestCheckHook, 7 mock, 8 six, 9 isPyPy, 10}: 11 12buildPythonPackage rec { 13 pname = "sure"; 14 version = "2.0.1"; 15 pyproject = true; 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 --replace-fail "--cov=sure" "" 28 ''; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 mock 34 six 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 mock 40 ]; 41 42 disabledTestPaths = [ 43 "tests/test_old_api.py" # require nose 44 ]; 45 46 pythonImportsCheck = [ "sure" ]; 47 48 meta = { 49 description = "Utility belt for automated testing"; 50 mainProgram = "sure"; 51 homepage = "https://sure.readthedocs.io/"; 52 changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md"; 53 license = lib.licenses.gpl3Plus; 54 maintainers = with lib.maintainers; [ sigmanificient ]; 55 }; 56}