
Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags` instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
41 lines
872 B
Nix
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 ];
|
|
};
|
|
}
|