Skip to content

Commit efa2aee

Browse files
committed
python312Packages.trx-python: init at 0.3
https://github.com/tee-ar-ex/trx-python
1 parent bde506b commit efa2aee

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16081,6 +16081,8 @@ self: super: with self; {
1608116081

1608216082
truststore = callPackage ../development/python-modules/truststore { };
1608316083

16084+
trx-python = callPackage ../development/python-modules/trx-python { };
16085+
1608416086
trytond = callPackage ../development/python-modules/trytond { };
1608516087

1608616088
ts1-signatures = callPackage ../development/python-modules/ts1-signatures { };

0 commit comments

Comments
 (0)