9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
36 lines
844 B
Nix
36 lines
844 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, coverage
|
|
, fetchPypi
|
|
, isPyPy
|
|
, isPy311
|
|
, python
|
|
, stdenv
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nose3";
|
|
version = "1.3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-diquIsrbiYsAudT0u7n46H+ODd5sSaiM0MVU9OWSW3Y=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ coverage ];
|
|
|
|
# PyPy hangs for unknwon reason
|
|
# Darwin and python 3.11 fail at various assertions and I didn't find an easy way to find skip those tests
|
|
doCheck = !isPyPy && !stdenv.isDarwin && !isPy311;
|
|
|
|
checkPhase = ''
|
|
${python.pythonForBuild.interpreter} selftest.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fork of nose v1 not using lib2to3 for compatibility with Python 3";
|
|
homepage = "https://github.com/jayvdb/nose3";
|
|
license = licenses.lgpl3;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|