python3Packages.nose3: init at 1.3.8

This commit is contained in:
Sandro Jäckel 2023-06-28 23:15:15 +02:00
parent 7f8a16b9f5
commit 424242721c
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, coverage
, fetchPypi
, isPyPy
, 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 fails an assertion and I didn't find a way to find skip that test
doCheck = !isPyPy && !stdenv.isDarwin;
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 ];
};
}

View File

@ -6858,9 +6858,11 @@ self: super: with self; {
normality = callPackage ../development/python-modules/normality { };
nose = callPackage ../development/python-modules/nose { };
nose2 = callPackage ../development/python-modules/nose2 { };
nose = callPackage ../development/python-modules/nose { };
nose3 = callPackage ../development/python-modules/nose3 { };
nose-cov = callPackage ../development/python-modules/nose-cov { };