Skip to content

Commit

Permalink
Merge pull request #314886 from bcdarwin/update-python3-pyxnat
Browse files Browse the repository at this point in the history
python312Packages.pyxnat: 1.6 -> 1.6.2
  • Loading branch information
risicle authored May 26, 2024
2 parents ab9a7c1 + 609f201 commit 5a27977
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions pkgs/development/python-modules/pyxnat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,34 @@
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:
src = fetchFromGitHub {
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
'';

Expand All @@ -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" ];
Expand Down

0 comments on commit 5a27977

Please sign in to comment.