2018-08-10 20:45:38 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pymatgen
|
2021-07-20 21:07:53 +00:00
|
|
|
, pytest-runner
|
2021-02-16 00:27:38 +00:00
|
|
|
, pytestCheckHook
|
2018-08-10 20:45:38 +00:00
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymatgen-lammps";
|
|
|
|
version = "0.4.5";
|
2021-02-16 00:27:38 +00:00
|
|
|
disabled = !isPy3k;
|
2018-08-10 20:45:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gitlab.com/costrouc/${pname}/-/archive/v${version}/${pname}-v${version}.tar.gz";
|
|
|
|
sha256 = "0shldl8is3195jmji7dr3zsh1bzxlahaqrmpr28niks7nnfj80fx";
|
|
|
|
};
|
|
|
|
|
2021-07-20 21:07:53 +00:00
|
|
|
buildInputs = [ pytest-runner ];
|
2021-02-16 00:27:38 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-08-10 20:45:38 +00:00
|
|
|
propagatedBuildInputs = [ pymatgen ];
|
|
|
|
|
2021-02-16 00:27:38 +00:00
|
|
|
pythonImportsCheck = [ "pmg_lammps" ];
|
|
|
|
|
2018-08-10 20:45:38 +00:00
|
|
|
meta = {
|
|
|
|
description = "A LAMMPS wrapper using pymatgen";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://gitlab.com/costrouc/pymatgen-lammps";
|
2018-08-10 20:45:38 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
2021-02-16 00:27:38 +00:00
|
|
|
# not compatible with recent versions of pymatgen
|
|
|
|
broken = true;
|
2018-08-10 20:45:38 +00:00
|
|
|
};
|
|
|
|
}
|