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