mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
35 lines
707 B
Nix
35 lines
707 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|