python3Packages.greenlet, enable tests, fix license

This commit is contained in:
Martin Weinelt 2021-06-29 15:05:23 +02:00 committed by Jonathan Ringer
parent b1baf6bf69
commit 66c36f0eb7

View file

@ -3,6 +3,7 @@
, fetchPypi
, six
, isPyPy
, python
}:
@ -16,11 +17,18 @@ buildPythonPackage rec {
sha256 = "c87df8ae3f01ffb4483c796fe1b15232ce2b219f0b18126948616224d3f658ee";
};
propagatedBuildInputs = [ six ];
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover -v greenlet.tests
runHook postCheck
'';
meta = {
homepage = "https://pypi.python.org/pypi/greenlet";
meta = with lib; {
homepage = "https://github.com/python-greenlet/greenlet";
description = "Module for lightweight in-process concurrent programming";
license = lib.licenses.lgpl2;
license = with licenses; [
psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
mit
];
};
}