Yueh-Shun Li 624897829b treewide: modernize Python package pytest flags
Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags`
instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
2025-07-15 03:00:08 +08:00

41 lines
872 B
Nix

{
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 ];
};
}