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