summary refs log tree commit diff
path: root/pkgs/development/python-modules/pymatgen-lammps/default.nix
blob: 72f362f85c45642d261efdd4a8bbfce62685b97c (plain) (blame)
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
{ lib
, fetchurl
, buildPythonPackage
, pymatgen
, pytestrunner
, pytestCheckHook
, isPy3k
}:

buildPythonPackage rec {
  pname = "pymatgen-lammps";
  version = "0.4.5";
  disabled = !isPy3k;

  src = fetchurl {
     url = "https://gitlab.com/costrouc/${pname}/-/archive/v${version}/${pname}-v${version}.tar.gz";
     sha256 = "0shldl8is3195jmji7dr3zsh1bzxlahaqrmpr28niks7nnfj80fx";
  };

  buildInputs = [ pytestrunner ];
  checkInputs = [ pytestCheckHook ];
  propagatedBuildInputs = [ pymatgen ];

  pythonImportsCheck = [ "pmg_lammps" ];

  meta = {
    description = "A LAMMPS wrapper using pymatgen";
    homepage = "https://gitlab.com/costrouc/pymatgen-lammps";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ costrouc ];
    # not compatible with recent versions of pymatgen
    broken = true;
  };
}