Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, rednose 5, six 6, mock 7, isPyPy 8, pythonOlder 9, fetchpatch 10}: 11 12buildPythonPackage rec { 13 pname = "sure"; 14 version = "2.0.0"; 15 format = "setuptools"; 16 17 disabled = isPyPy; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "34ae88c846046742ef074036bf311dc90ab152b7bc09c342b281cebf676727a2"; 22 }; 23 24 patches = [ 25 # https://github.com/gabrielfalcao/sure/issues/169 26 (fetchpatch { 27 url = "https://raw.githubusercontent.com/archlinux/svntogit-community/055baa81cd987e566de62a5657513937521a90d4/trunk/python310.diff"; 28 hash = "sha256-BKylV8xpTOuO/X4hzZKpoIcAQcdAK0kXYENRad7AGPc="; 29 }) 30 ]; 31 32 propagatedBuildInputs = [ 33 six 34 mock 35 ]; 36 37 nativeCheckInputs = [ 38 rednose 39 ]; 40 41 doCheck = pythonOlder "3.11"; 42 43 pythonImportsCheck = [ 44 "sure" 45 ]; 46 47 meta = with lib; { 48 description = "Utility belt for automated testing"; 49 homepage = "https://sure.readthedocs.io/"; 50 changelog = "https://github.com/gabrielfalcao/sure/blob/${version}/CHANGELOG.md"; 51 license = licenses.gpl3Plus; 52 maintainers = with maintainers; [ ]; 53 }; 54}