File tree Expand file tree Collapse file tree 3 files changed +84
-7
lines changed
development/python-modules Expand file tree Collapse file tree 3 files changed +84
-7
lines changed Original file line number Diff line number Diff line change 33 buildPythonPackage ,
44 fetchFromGitHub ,
55 pythonOlder ,
6+ meson-python ,
67 packaging ,
78 cython ,
89 numpy ,
910 scipy ,
1011 h5py ,
1112 nibabel ,
1213 tqdm ,
14+ trx-python ,
1315} :
1416
1517buildPythonPackage rec {
1618 pname = "dipy" ;
17- version = "1.7 .0" ;
18- format = "setuptools" ;
19+ version = "1.9 .0" ;
20+ pyproject = true ;
1921
2022 disabled = pythonOlder "3.6" ;
2123
2224 src = fetchFromGitHub {
2325 owner = "dipy" ;
24- repo = pname ;
26+ repo = "dipy" ;
2527 rev = "refs/tags/${ version } " ;
26- hash = "sha256-sfqCK2r9Io1gDDHL9s9R37J0h9KcOQML3B2zJx2+QuA =" ;
28+ hash = "sha256-6cpxuk2PL43kjQ+6UGiUHUXC7pC9OlW9kZvGOdEXyzw =" ;
2729 } ;
2830
29- nativeBuildInputs = [
31+ postPatch = ''
32+ substituteInPlace pyproject.toml \
33+ --replace-fail "numpy==" "numpy>="
34+ '' ;
35+
36+ build-system = [
3037 cython
38+ meson-python
39+ numpy
3140 packaging
3241 ] ;
3342
34- propagatedBuildInputs = [
43+ dependencies = [
3544 numpy
3645 scipy
3746 h5py
3847 nibabel
48+ packaging
3949 tqdm
50+ trx-python
4051 ] ;
4152
4253 # disable tests for now due to:
@@ -53,7 +64,6 @@ buildPythonPackage rec {
5364 "dipy.reconst"
5465 "dipy.io"
5566 "dipy.viz"
56- "dipy.boots"
5767 "dipy.data"
5868 "dipy.utils"
5969 "dipy.segment"
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ cython ,
6+ setuptools ,
7+ setuptools-scm ,
8+ deepdiff ,
9+ nibabel ,
10+ numpy ,
11+ pytestCheckHook ,
12+ psutil ,
13+ } :
14+
15+ buildPythonPackage rec {
16+ pname = "trx-python" ;
17+ version = "0.3" ;
18+ pyproject = true ;
19+
20+ src = fetchFromGitHub {
21+ owner = "tee-ar-ex" ;
22+ repo = "trx-python" ;
23+ rev = "refs/tags/${ version } " ;
24+ hash = "sha256-gKPgP3GJ7QY0Piylk5L0HxnscRCREP1Hm5HZufL2h5g=" ;
25+ } ;
26+
27+ build-system = [
28+ cython
29+ setuptools
30+ setuptools-scm
31+ ] ;
32+
33+ dependencies = [
34+ deepdiff
35+ nibabel
36+ numpy
37+ ] ;
38+
39+ pythonImportsCheck = [ "trx" ] ;
40+
41+ nativeCheckInputs = [
42+ pytestCheckHook
43+ psutil
44+ ] ;
45+
46+ preCheck = ''
47+ export HOME=$TMPDIR
48+ '' ;
49+
50+ pytestFlagsArray = [ "trx/tests" ] ;
51+
52+ disabledTestPaths = [
53+ # access to network
54+ "trx/tests/test_memmap.py"
55+ "trx/tests/test_io.py"
56+ ] ;
57+
58+ meta = {
59+ description = "Python implementation of the TRX file format" ;
60+ homepage = "https://github.com/tee-ar-ex/trx-python" ;
61+ changelog = "https://github.com/tee-ar-ex/trx-python/releases/tag/${ version } " ;
62+ license = lib . licenses . bsd2 ;
63+ maintainers = with lib . maintainers ; [ ] ;
64+ } ;
65+ }
Original file line number Diff line number Diff line change @@ -16116,6 +16116,8 @@ self: super: with self; {
1611616116
1611716117 truststore = callPackage ../development/python-modules/truststore { };
1611816118
16119+ trx-python = callPackage ../development/python-modules/trx-python { };
16120+
1611916121 trytond = callPackage ../development/python-modules/trytond { };
1612016122
1612116123 ts1-signatures = callPackage ../development/python-modules/ts1-signatures { };
You can’t perform that action at this time.
0 commit comments