Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 1.7 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5# python dependencies 6, click 7, configparser ? null 8, dateutil 9, funcsigs 10, future 11, futures 12, mock 13, networkx 14, nibabel 15, numpy 16, packaging 17, prov 18, psutil 19, pydot 20, pytest 21, pytest_xdist 22, pytest-forked 23, scipy 24, simplejson 25, traits 26, xvfbwrapper 27, pytestcov 28, codecov 29# other dependencies 30, which 31, bash 32, glibcLocales 33, callPackage 34}: 35 36assert !isPy3k -> configparser != null; 37 38let 39 40 # This is a temporary convenience package for changes waiting to be merged into the primary rdflib repo. 41 neurdflib = callPackage ./neurdflib.nix { }; 42 43in 44 45buildPythonPackage rec { 46 pname = "nipype"; 47 version = "1.1.8"; 48 49 src = fetchPypi { 50 inherit pname version; 51 sha256 = "d5eec6de7d8e7020106c42b37d17f99de92824440cc79dfa6080f7c2e6d9fecc"; 52 }; 53 54 postPatch = '' 55 substituteInPlace nipype/interfaces/base/tests/test_core.py \ 56 --replace "/usr/bin/env bash" "${bash}/bin/bash" 57 ''; 58 59 propagatedBuildInputs = [ 60 click 61 dateutil 62 funcsigs 63 future 64 networkx 65 neurdflib 66 nibabel 67 numpy 68 packaging 69 prov 70 psutil 71 pydot 72 scipy 73 simplejson 74 traits 75 xvfbwrapper 76 ] ++ stdenv.lib.optional (!isPy3k) [ 77 configparser 78 futures 79 ]; 80 81 checkInputs = [ 82 codecov 83 glibcLocales 84 mock 85 pytest 86 pytest-forked 87 pytest_xdist 88 pytestcov 89 which 90 ]; 91 92 checkPhase = '' 93 LC_ALL="en_US.UTF-8" pytest -v --doctest-modules nipype 94 ''; 95 96 # See: https://github.com/nipy/nipype/issues/2839 97 doCheck = false; 98 99 meta = with stdenv.lib; { 100 homepage = http://nipy.org/nipype/; 101 description = "Neuroimaging in Python: Pipelines and Interfaces"; 102 license = licenses.bsd3; 103 maintainers = with maintainers; [ ashgillman ]; 104 }; 105}