depot/third_party/nixpkgs/pkgs/development/python-modules/greenlet/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

31 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
];
};
}