about summary refs log tree commit diff
path: root/pkgs/development/python-modules/six/default.nix
blob: afaedae9529ec6919ba93182667777f8562b3467 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "six";
  version = "1.16.0";

  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = if isPyPy then [
    # uses ctypes to find native library
    "--deselect=test_six.py::test_move_items"
  ] else null;

  pythonImportsCheck = [ "six" ];

  meta = {
    changelog = "https://github.com/benjaminp/six/blob/${version}/CHANGES";
    description = "Python 2 and 3 compatibility library";
    homepage = "https://github.com/benjaminp/six";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}