Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / six / default.nix
blobafaedae9529ec6919ba93182667777f8562b3467
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPyPy
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "six";
10   version = "1.16.0";
12   format = "setuptools";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
17   };
19   nativeCheckInputs = [
20     pytestCheckHook
21   ];
23   pytestFlagsArray = if isPyPy then [
24     # uses ctypes to find native library
25     "--deselect=test_six.py::test_move_items"
26   ] else null;
28   pythonImportsCheck = [ "six" ];
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   };