mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
32 lines
701 B
Nix
32 lines
701 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPyPy
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
pname = "greenlet";
|
|
version = "1.1.3";
|
|
disabled = isPyPy; # builtin for pypy
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-vLbG3R1r5tONbbKDdH0H/aCJ/4xVmoNSNlYKRBA0BFU=";
|
|
};
|
|
|
|
checkInputs = [ unittestCheckHook ];
|
|
|
|
unittestFlagsArray = [ "-v" "greenlet.tests" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/python-greenlet/greenlet";
|
|
description = "Module for lightweight in-process concurrent programming";
|
|
license = with licenses; [
|
|
psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory
|
|
mit
|
|
];
|
|
};
|
|
}
|