tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.atsim_potentials: Unbreak package
Jonas Heinrich
3 years ago
77c71e63
25809585
+30
-17
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
atsim_potentials
default.nix
+30
-17
pkgs/development/python-modules/atsim_potentials/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
-
, fetchPypi
3
3
+
, fetchFromGitHub
4
4
, configparser
5
5
, pyparsing
6
6
-
, pytest
6
6
+
, pytestCheckHook
7
7
, future
8
8
, openpyxl
9
9
, wrapt
10
10
+
, scipy
11
11
+
, cexprtk
12
12
+
, deepdiff
13
13
+
, sympy
10
14
}:
11
15
12
16
buildPythonPackage rec {
13
17
version = "0.4.0";
14
14
-
pname = "atsim.potentials";
18
18
+
pname = "atsim-potentials";
15
19
16
16
-
src = fetchPypi {
17
17
-
inherit pname version;
18
18
-
sha256 = "0c3e4e2323e969880f17a9924642e0991be5761f50b254bcbadd046db3be6390";
20
20
+
src = fetchFromGitHub {
21
21
+
owner = "mjdrushton";
22
22
+
repo = pname;
23
23
+
rev = version;
24
24
+
sha256 = "sha256-MwjRVd54qa8uJOi9yRXU+Vrve50ndftJUl+TFZKVzQM=";
19
25
};
20
26
21
21
-
checkInputs = [ pytest ];
27
27
+
postPatch = ''
28
28
+
# Remove conflicting openpyxl dependency version check
29
29
+
sed -i '/openpyxl==2.6.4/d' setup.py
30
30
+
'';
31
31
+
22
32
propagatedBuildInputs = [
33
33
+
cexprtk
23
34
configparser
24
35
future
25
36
openpyxl
26
37
pyparsing
38
38
+
scipy
39
39
+
sympy
27
40
wrapt
28
41
];
29
42
30
30
-
postPatch = ''
31
31
-
substituteInPlace setup.py \
32
32
-
--replace "wrapt==1.11.2" "wrapt~=1.11"
33
33
-
'';
43
43
+
checkInputs = [
44
44
+
deepdiff
45
45
+
pytestCheckHook
46
46
+
];
34
47
35
35
-
# tests are not included with release
36
36
-
doCheck = false;
48
48
+
disabledTests = [
49
49
+
# Missing lammps executable
50
50
+
"eam_tabulate_example2TestCase"
51
51
+
"test_pymath"
52
52
+
];
37
53
38
38
-
checkPhase = ''
39
39
-
py.test
40
40
-
'';
54
54
+
pythonImportsCheck = [ "atsim.potentials" ];
41
55
42
56
meta = with lib; {
43
57
homepage = "https://github.com/mjdrushton/atsim-potentials";
44
58
description = "Provides tools for working with pair and embedded atom method potential models including tabulation routines for DL_POLY and LAMMPS";
45
59
license = licenses.mit;
46
60
maintainers = [ maintainers.costrouc ];
47
47
-
broken = true; # missing cexprtk package
48
61
};
49
62
}