python3Packages.pyxnat: init at 1.3

This commit is contained in:
Ben Darwin 2020-06-09 15:17:22 -04:00 committed by Jon
parent b3ca5036a4
commit 9fde97d85f
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, nose
, lxml
, requests
}:
buildPythonPackage rec {
pname = "pyxnat";
version = "1.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "113d13cs5ab7wy4vmyqyh8isjhlgfvan7y2g8n25vcpn3j4j00h0";
};
propagatedBuildInputs = [ lxml requests ];
checkInputs = [ nose ];
checkPhase = "nosetests pyxnat/tests";
doCheck = false; # requires a docker container running an XNAT server
pythonImportsCheck = [ "pyxnat" ];
meta = with lib; {
homepage = "https://pyxnat.github.io/pyxnat";
description = "Python API to XNAT";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}

View file

@ -5916,6 +5916,8 @@ in {
pyxml = disabledIf isPy3k (callPackage ../development/python-modules/pyxml { });
pyxnat = callPackage ../development/python-modules/pyxnat { };
pyyaml = callPackage ../development/python-modules/pyyaml { };
pyzmq = callPackage ../development/python-modules/pyzmq { };