blob: 340118a3216adc29b3b5836261808bc598260c9d (
plain)
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
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
isPyPy,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "six";
version = "1.17.0";
pyproject = true;
src = fetchFromGitHub {
owner = "benjaminp";
repo = "six";
tag = version;
hash = "sha256-tz99C+dz5xJhunoC45bl0NdSdV9NXWya9ti48Z/KaHY=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = lib.optionals isPyPy [
# uses ctypes to find native library
"test_six.py::test_move_items"
];
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 ];
};
}
|