1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPyPy
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "six";
10 version = "1.16.0";
11
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
17 };
18
19 nativeCheckInputs = [
20 pytestCheckHook
21 ];
22
23 pytestFlagsArray = if isPyPy then [
24 # uses ctypes to find native library
25 "--deselect=test_six.py::test_move_items"
26 ] else null;
27
28 pythonImportsCheck = [ "six" ];
29
30 meta = {
31 changelog = "https://github.com/benjaminp/six/blob/${version}/CHANGES";
32 description = "Python 2 and 3 compatibility library";
33 homepage = "https://github.com/benjaminp/six";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ dotlambda ];
36 };
37}