at 24.11-pre 983 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 coverage, 5 fetchPypi, 6 isPyPy, 7 isPy311, 8 python, 9 pythonAtLeast, 10 stdenv, 11}: 12 13buildPythonPackage rec { 14 pname = "nose3"; 15 version = "1.3.8"; 16 format = "setuptools"; 17 18 # https://github.com/jayvdb/nose3/issues/5 19 disabled = pythonAtLeast "3.12"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-diquIsrbiYsAudT0u7n46H+ODd5sSaiM0MVU9OWSW3Y="; 24 }; 25 26 propagatedBuildInputs = [ coverage ]; 27 28 # PyPy hangs for unknwon reason 29 # Darwin and python 3.11 fail at various assertions and I didn't find an easy way to find skip those tests 30 doCheck = !isPyPy && !stdenv.isDarwin && !isPy311; 31 32 checkPhase = '' 33 ${python.pythonOnBuildForHost.interpreter} selftest.py 34 ''; 35 36 meta = with lib; { 37 description = "Fork of nose v1 not using lib2to3 for compatibility with Python 3"; 38 homepage = "https://github.com/jayvdb/nose3"; 39 license = licenses.lgpl3; 40 maintainers = with maintainers; [ SuperSandro2000 ]; 41 }; 42}