aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/atsim_potentials/default.nix
blob: 8369a49b7db8de81d7badf0154c3a1862929c793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ stdenv
, buildPythonPackage
, fetchPypi
, configparser
, pyparsing
, pytest
, future
, openpyxl
, wrapt
}:

buildPythonPackage rec {
  version = "0.3.0";
  pname = "atsim.potentials";

  src = fetchPypi {
    inherit pname version;
    sha256 = "70082fc40b0ab7565a671c2d764fe3db08bc6ce45da44e1c1e8b77a65d1f7a23";
  };

  checkInputs = [ pytest ];
  propagatedBuildInputs = [
    configparser
    future
    openpyxl
    pyparsing
    wrapt
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "wrapt==1.11.2" "wrapt~=1.11"
  '';

  # tests are not included with release
  doCheck = false;

  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    homepage = "https://github.com/mjdrushton/atsim-potentials";
    description = "Provides tools for working with pair and embedded atom method potential models including tabulation routines for DL_POLY and LAMMPS";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
    broken = true; # missing cexprtk package
  };
}