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
15buildPythonPackage 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 tag = 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 enabledTestPaths = [ "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}