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