71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
bibtexparser,
|
|
cdcs,
|
|
datamodeldict,
|
|
habanero,
|
|
ipywidgets,
|
|
lxml,
|
|
matplotlib,
|
|
numpy,
|
|
pandas,
|
|
requests,
|
|
scipy,
|
|
unidecode,
|
|
xmltodict,
|
|
yabadaba,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "potentials";
|
|
version = "0.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "usnistgov";
|
|
repo = "potentials";
|
|
tag = "v${version}";
|
|
hash = "sha256-R6LGRmi6xeNp81qylXBAVdL62/SN87TvuyRqueQD6DA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
bibtexparser
|
|
cdcs
|
|
datamodeldict
|
|
habanero
|
|
ipywidgets
|
|
lxml
|
|
matplotlib
|
|
numpy
|
|
pandas
|
|
requests
|
|
scipy
|
|
unidecode
|
|
xmltodict
|
|
yabadaba
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "potentials" ];
|
|
|
|
meta = {
|
|
description = "Python API database tools for accessing the NIST Interatomic Potentials Repository";
|
|
homepage = "https://github.com/usnistgov/potentials";
|
|
changelog = "https://github.com/usnistgov/potentials/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|