tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.energyflow: init at 1.3.2
Dmitry Kalinkin
3 years ago
4d213f68
ab6dd73d
+56
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
energyflow
default.nix
top-level
python-packages.nix
+54
pkgs/development/python-modules/energyflow/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib
2
+
, buildPythonPackage
3
+
, fetchFromGitHub
4
+
, h5py
5
+
, numpy
6
+
, six
7
+
, wasserstein
8
+
, pytestCheckHook
9
+
}:
10
+
11
+
buildPythonPackage rec {
12
+
pname = "EnergyFlow";
13
+
version = "1.3.2";
14
+
15
+
src = fetchFromGitHub {
16
+
owner = "pkomiske";
17
+
repo = pname;
18
+
rev = "v${version}";
19
+
hash = "sha256-fjT8c0ZTjdufP334upPzRVdTJDIBs84I7PkFu4CMcQw=";
20
+
};
21
+
22
+
postPatch = ''
23
+
substituteInPlace setup.cfg \
24
+
--replace "setup_requires=" "" \
25
+
--replace "pytest-runner" ""
26
+
'';
27
+
28
+
propagatedBuildInputs = [
29
+
h5py
30
+
numpy
31
+
six
32
+
wasserstein
33
+
];
34
+
35
+
checkInputs = [
36
+
pytestCheckHook
37
+
];
38
+
pytestFlagsArray = [
39
+
"energyflow/tests"
40
+
];
41
+
disabledTestPaths = [
42
+
"energyflow/tests/test_archs.py" # requires tensorflow
43
+
"energyflow/tests/test_emd.py" # requires "ot"
44
+
];
45
+
46
+
pythonImportsCheck = [ "energyflow" ];
47
+
48
+
meta = with lib; {
49
+
description = "Python package for the EnergyFlow suite of tools";
50
+
homepage = "https://energyflow.network/";
51
+
license = licenses.gpl3Only;
52
+
maintainers = with maintainers; [ veprbl ];
53
+
};
54
+
}
+2
pkgs/top-level/python-packages.nix
···
2948
2949
enamlx = callPackage ../development/python-modules/enamlx { };
2950
0
0
2951
enhancements = callPackage ../development/python-modules/enhancements { };
2952
2953
enlighten = callPackage ../development/python-modules/enlighten { };
···
2948
2949
enamlx = callPackage ../development/python-modules/enamlx { };
2950
2951
+
energyflow = callPackage ../development/python-modules/energyflow { };
2952
+
2953
enhancements = callPackage ../development/python-modules/enhancements { };
2954
2955
enlighten = callPackage ../development/python-modules/enlighten { };