nixpkgs/pkgs/development/python-modules/greenlet/default.nix

35 lines
753 B
Nix
Raw Normal View History

2018-06-12 19:21:24 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, six
, isPyPy
, python
2018-06-12 19:21:24 +01:00
}:
buildPythonPackage rec {
pname = "greenlet";
version = "1.1.1";
2018-06-12 19:21:24 +01:00
disabled = isPyPy; # builtin for pypy
src = fetchPypi {
inherit pname version;
sha256 = "c0f22774cd8294078bdf7392ac73cf00bfa1e5e0ed644bd064fdabc5f2a2f481";
2018-06-12 19:21:24 +01:00
};
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover -v greenlet.tests
runHook postCheck
'';
2018-06-12 19:21:24 +01:00
meta = with lib; {
homepage = "https://github.com/python-greenlet/greenlet";
2018-06-12 19:21:24 +01:00
description = "Module for lightweight in-process concurrent programming";
license = with licenses; [
psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
mit
];
2018-06-12 19:21:24 +01:00
};
}