Merge pull request #117524 from rmcgibbo/pyxnat
python38Packages.pyxnat: unbreak
This commit is contained in:
commit
c397ae1855
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy27
|
, pythonOlder
|
||||||
, nose
|
, nose
|
||||||
, lxml
|
, lxml
|
||||||
, requests
|
, requests
|
||||||
@ -10,7 +10,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyxnat";
|
pname = "pyxnat";
|
||||||
version = "1.4";
|
version = "1.4";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -19,6 +19,14 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ lxml requests ];
|
propagatedBuildInputs = [ lxml requests ];
|
||||||
|
|
||||||
|
# future is not used, and pathlib is installed part of python38+
|
||||||
|
# w/o an external package
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "pathlib>=1.0" "" \
|
||||||
|
--replace "future>=0.16" ""
|
||||||
|
'';
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
checkPhase = "nosetests pyxnat/tests";
|
checkPhase = "nosetests pyxnat/tests";
|
||||||
doCheck = false; # requires a docker container running an XNAT server
|
doCheck = false; # requires a docker container running an XNAT server
|
||||||
|
Loading…
Reference in New Issue
Block a user