2018-08-10 20:41:46 +00:00
|
|
|
{ lib
|
2018-11-18 23:27:07 +00:00
|
|
|
, fetchPypi
|
2018-08-10 20:41:46 +00:00
|
|
|
, buildPythonPackage
|
2019-08-05 08:42:43 +00:00
|
|
|
, isPy27
|
2018-08-10 20:41:46 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, flask
|
|
|
|
, pillow
|
|
|
|
, psycopg2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ase";
|
2021-12-02 15:01:02 +00:00
|
|
|
version = "3.22.1";
|
2023-12-07 03:53:02 +00:00
|
|
|
format = "setuptools";
|
2019-08-05 08:42:43 +00:00
|
|
|
disabled = isPy27;
|
2018-08-10 20:41:46 +00:00
|
|
|
|
2018-11-18 23:27:07 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-AE32sOoEsRFMeQ+t/kXUEl6w5TElxmqTQlr4U9gqtDI=";
|
2018-08-10 20:41:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy scipy matplotlib flask pillow psycopg2 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/ase test
|
|
|
|
'';
|
|
|
|
|
|
|
|
# tests just hang most likely due to something with subprocesses and cli
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-07-03 10:04:28 +00:00
|
|
|
pythonImportsCheck = [ "ase" ];
|
|
|
|
|
2018-11-18 23:27:07 +00:00
|
|
|
meta = with lib; {
|
2018-08-10 20:41:46 +00:00
|
|
|
description = "Atomic Simulation Environment";
|
2020-04-06 13:04:55 +00:00
|
|
|
homepage = "https://wiki.fysik.dtu.dk/ase/";
|
2018-11-18 23:27:07 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2023-06-30 15:53:25 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-08-10 20:41:46 +00:00
|
|
|
};
|
|
|
|
}
|