Merge pull request #314886 from bcdarwin/update-python3-pyxnat

python312Packages.pyxnat: 1.6 -> 1.6.2
This commit is contained in:
Robert Scott 2024-05-26 23:29:15 +01:00 committed by GitHub
commit 5a279778af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,13 +9,14 @@
networkx,
pandas,
requests,
six,
setuptools,
}:
buildPythonPackage rec {
pname = "pyxnat";
version = "1.6";
format = "setuptools";
version = "1.6.2";
pyproject = true;
disabled = pythonOlder "3.8";
# PyPI dist missing test configuration files:
@ -23,21 +24,19 @@ buildPythonPackage rec {
owner = "pyxnat";
repo = "pyxnat";
rev = "refs/tags/${version}";
hash = "sha256-QejYisvQFN7CsDOx9wAgTHmRZcSEqgIr8twG4XucfZ4=";
hash = "sha256-21nTIYbIYlFWNJTxqsuijamqRunpdc7/VBawvrWadWI=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
lxml
requests
six
];
# future is not used, and pathlib is installed part of python38+
# w/o an external package
# pathlib is installed part of python38+ w/o an external package
prePatch = ''
substituteInPlace setup.py \
--replace "pathlib>=1.0" "" \
--replace "future>=0.16" ""
substituteInPlace setup.py --replace-fail "pathlib>=1.0" ""
sed -i '/--cov/d' setup.cfg
'';
@ -52,15 +51,24 @@ buildPythonPackage rec {
'';
pytestFlagsArray = [ "pyxnat" ];
disabledTestPaths = [
# try to access network even though PYXNAT_SKIP_NETWORK_TESTS is set:
# require a running local XNAT instance e.g. in a docker container:
"pyxnat/tests/attributes_test.py"
"pyxnat/tests/custom_variables_test.py"
"pyxnat/tests/interfaces_test.py"
"pyxnat/tests/pipelines_test.py"
"pyxnat/tests/provenance_test.py"
"pyxnat/tests/prearchive_test.py"
"pyxnat/tests/repr_test.py"
"pyxnat/tests/resources_test.py"
"pyxnat/tests/search_test.py"
"pyxnat/tests/sessionmirror_test.py"
"pyxnat/tests/test_resource_functions.py"
"pyxnat/tests/user_and_project_management_test.py"
];
disabledTests = [
# try to access network even though PYXNAT_SKIP_NETWORK_TESTS is set:
"test_ashs_volumes"
"test_inspector_structure"
"test_project_manager"
];
pythonImportsCheck = [ "pyxnat" ];