Loading pkgs/development/python-modules/pyxnat/default.nix +20 −12 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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 ''; Loading @@ -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" ]; Loading Loading
pkgs/development/python-modules/pyxnat/default.nix +20 −12 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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 ''; Loading @@ -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" ]; Loading