File tree Expand file tree Collapse file tree 4 files changed +133
-3
lines changed
development/python-modules Expand file tree Collapse file tree 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 1616
1717 # tests
1818 # bridgestan, (not packaged)
19+ equinox ,
20+ flowjax ,
1921 jax ,
2022 jaxlib ,
2123 numba ,
24+ pytest-timeout ,
2225 pymc ,
2326 pytestCheckHook ,
2427 setuptools ,
2730
2831buildPythonPackage rec {
2932 pname = "nutpie" ;
30- version = "0.13.4 " ;
33+ version = "0.14.2 " ;
3134 pyproject = true ;
3235
3336 src = fetchFromGitHub {
3437 owner = "pymc-devs" ;
3538 repo = "nutpie" ;
3639 tag = "v${ version } " ;
37- hash = "sha256-BpKt/EWBefCQUGDxyqF6Xjrj/HUvY4M26gk79R/CyZo =" ;
40+ hash = "sha256-9sHs2JbzVRvAJEoLcz5NxkbElbXblDzxA6oCBtb4yFE =" ;
3841 } ;
3942
4043 cargoDeps = rustPlatform . fetchCargoVendor {
4144 inherit src ;
4245 name = "${ pname } -${ version } " ;
43- hash = "sha256-d0Qk01YwosHlOy3yb/2PV5Op1Wz+yB5ROVbUWfHooEk =" ;
46+ hash = "sha256-j7Vasy4BwOYzH43mWdbu+QsNCdRfvJC6ZvYU8XB5s4E =" ;
4447 } ;
4548
4649 build-system = [
@@ -66,10 +69,13 @@ buildPythonPackage rec {
6669
6770 nativeCheckInputs = [
6871 # bridgestan
72+ equinox
73+ flowjax
6974 numba
7075 jax
7176 jaxlib
7277 pymc
78+ pytest-timeout
7379 pytestCheckHook
7480 setuptools
7581 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; {
49344934
49354935 flower = callPackage ../development/python-modules/flower { };
49364936
4937+ flowjax = callPackage ../development/python-modules/flowjax { };
4938+
49374939 flowlogs-reader = callPackage ../development/python-modules/flowlogs-reader { };
49384940
49394941 flowmc = callPackage ../development/python-modules/flowmc { };
@@ -10243,6 +10245,8 @@ self: super: with self; {
1024310245
1024410246 param = callPackage ../development/python-modules/param { };
1024510247
10248+ paramax = callPackage ../development/python-modules/paramax { };
10249+
1024610250 parameter-expansion-patched = callPackage ../development/python-modules/parameter-expansion-patched { };
1024710251
1024810252 parameterized = callPackage ../development/python-modules/parameterized { };
You can’t perform that action at this time.
0 commit comments