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