File tree 4 files changed +133
-3
lines changed
development/python-modules
4 files changed +133
-3
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ buildPythonPackage ,
4
+ fetchFromGitHub ,
5
+
6
+ # build-system
7
+ hatchling ,
8
+
9
+ # dependencies
10
+ equinox ,
11
+ jax ,
12
+ jaxtyping ,
13
+ optax ,
14
+ paramax ,
15
+ tqdm ,
16
+
17
+ # tests
18
+ beartype ,
19
+ numpyro ,
20
+ pytest-xdist ,
21
+ pytestCheckHook ,
22
+ } :
23
+
24
+ buildPythonPackage rec {
25
+ pname = "flowjax" ;
26
+ version = "17.1.1" ;
27
+ pyproject = true ;
28
+
29
+ src = fetchFromGitHub {
30
+ owner = "danielward27" ;
31
+ repo = "flowjax" ;
32
+ tag = "v${ version } " ;
33
+ hash = "sha256-CLtkO7Lr+FpC/RHnqDSmevpJ3/3EfuILrQSbcdNTqsI=" ;
34
+ } ;
35
+
36
+ build-system = [
37
+ hatchling
38
+ ] ;
39
+
40
+ dependencies = [
41
+ equinox
42
+ jax
43
+ jaxtyping
44
+ optax
45
+ paramax
46
+ tqdm
47
+ ] ;
48
+
49
+ pythonImportsCheck = [ "flowjax" ] ;
50
+
51
+ nativeCheckInputs = [
52
+ beartype
53
+ numpyro
54
+ pytest-xdist
55
+ pytestCheckHook
56
+ ] ;
57
+
58
+ meta = {
59
+ description = "Distributions, bijections and normalizing flows using Equinox and JAX" ;
60
+ homepage = "https://github.com/danielward27/flowjax" ;
61
+ changelog = "https://github.com/danielward27/flowjax/releases/tag/v${ version } " ;
62
+ license = lib . licenses . mit ;
63
+ maintainers = with lib . maintainers ; [ GaetanLepage ] ;
64
+ } ;
65
+ }
Original file line number Diff line number Diff line change 16
16
17
17
# tests
18
18
# bridgestan, (not packaged)
19
+ equinox ,
20
+ flowjax ,
19
21
jax ,
20
22
jaxlib ,
21
23
numba ,
24
+ pytest-timeout ,
22
25
pymc ,
23
26
pytestCheckHook ,
24
27
setuptools ,
27
30
28
31
buildPythonPackage rec {
29
32
pname = "nutpie" ;
30
- version = "0.13.4 " ;
33
+ version = "0.14.2 " ;
31
34
pyproject = true ;
32
35
33
36
src = fetchFromGitHub {
34
37
owner = "pymc-devs" ;
35
38
repo = "nutpie" ;
36
39
tag = "v${ version } " ;
37
- hash = "sha256-BpKt/EWBefCQUGDxyqF6Xjrj/HUvY4M26gk79R/CyZo =" ;
40
+ hash = "sha256-9sHs2JbzVRvAJEoLcz5NxkbElbXblDzxA6oCBtb4yFE =" ;
38
41
} ;
39
42
40
43
cargoDeps = rustPlatform . fetchCargoVendor {
41
44
inherit src ;
42
45
name = "${ pname } -${ version } " ;
43
- hash = "sha256-d0Qk01YwosHlOy3yb/2PV5Op1Wz+yB5ROVbUWfHooEk =" ;
46
+ hash = "sha256-j7Vasy4BwOYzH43mWdbu+QsNCdRfvJC6ZvYU8XB5s4E =" ;
44
47
} ;
45
48
46
49
build-system = [
@@ -66,10 +69,13 @@ buildPythonPackage rec {
66
69
67
70
nativeCheckInputs = [
68
71
# bridgestan
72
+ equinox
73
+ flowjax
69
74
numba
70
75
jax
71
76
jaxlib
72
77
pymc
78
+ pytest-timeout
73
79
pytestCheckHook
74
80
setuptools
75
81
writableTmpDirAsHomeHook
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ buildPythonPackage ,
4
+ fetchFromGitHub ,
5
+
6
+ # build-system
7
+ hatchling ,
8
+
9
+ # dependencies
10
+ equinox ,
11
+ jax ,
12
+ jaxtyping ,
13
+
14
+ # tests
15
+ beartype ,
16
+ pytestCheckHook ,
17
+ } :
18
+
19
+ buildPythonPackage rec {
20
+ pname = "paramax" ;
21
+ version = "0.0.0" ;
22
+ pyproject = true ;
23
+
24
+ src = fetchFromGitHub {
25
+ owner = "danielward27" ;
26
+ repo = "paramax" ;
27
+ tag = "v${ version } " ;
28
+ hash = "sha256-w6F9XuQEwRfOei6gDAyCHt2HUY7I4H92AlEv1Xddv54=" ;
29
+ } ;
30
+
31
+ build-system = [
32
+ hatchling
33
+ ] ;
34
+
35
+ dependencies = [
36
+ equinox
37
+ jax
38
+ jaxtyping
39
+ ] ;
40
+
41
+ pythonImportsCheck = [ "paramax" ] ;
42
+
43
+ nativeCheckInputs = [
44
+ beartype
45
+ pytestCheckHook
46
+ ] ;
47
+
48
+ meta = {
49
+ description = "A small library of paramaterizations and parameter constraints for PyTrees" ;
50
+ homepage = "https://github.com/danielward27/paramax" ;
51
+ changelog = "https://github.com/danielward27/paramax/releases/tag/v${ version } " ;
52
+ license = lib . licenses . mit ;
53
+ maintainers = with lib . maintainers ; [ GaetanLepage ] ;
54
+ } ;
55
+ }
Original file line number Diff line number Diff line change @@ -4934,6 +4934,8 @@ self: super: with self; {
4934
4934
4935
4935
flower = callPackage ../development/python-modules/flower { };
4936
4936
4937
+ flowjax = callPackage ../development/python-modules/flowjax { };
4938
+
4937
4939
flowlogs-reader = callPackage ../development/python-modules/flowlogs-reader { };
4938
4940
4939
4941
flowmc = callPackage ../development/python-modules/flowmc { };
@@ -10243,6 +10245,8 @@ self: super: with self; {
10243
10245
10244
10246
param = callPackage ../development/python-modules/param { };
10245
10247
10248
+ paramax = callPackage ../development/python-modules/paramax { };
10249
+
10246
10250
parameter-expansion-patched = callPackage ../development/python-modules/parameter-expansion-patched { };
10247
10251
10248
10252
parameterized = callPackage ../development/python-modules/parameterized { };
You can’t perform that action at this time.
0 commit comments