mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 05:44:13 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
48 lines
973 B
Nix
48 lines
973 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, nose
|
|
, lxml
|
|
, requests
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyxnat";
|
|
version = "1.5";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Y8mj6OfZXyE1q3C8HyVzGySuZB6rLSsL/CV/7axxaec=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
lxml
|
|
requests
|
|
six
|
|
];
|
|
|
|
# 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" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|