python312Packages.pymatgen: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-27 15:06:59 +02:00
parent 0d9c130d75
commit 6ed2833404

View file

@ -1,32 +1,33 @@
{ lib {
, stdenv lib,
, ase stdenv,
, buildPythonPackage ase,
, cython buildPythonPackage,
, fetchFromGitHub cython,
, glibcLocales fetchFromGitHub,
, joblib glibcLocales,
, matplotlib joblib,
, monty matplotlib,
, networkx monty,
, oldest-supported-numpy networkx,
, palettable oldest-supported-numpy,
, pandas palettable,
, plotly pandas,
, pybtex plotly,
, pydispatcher pybtex,
, pytest-xdist pydispatcher,
, pytestCheckHook pytest-xdist,
, pythonOlder pytestCheckHook,
, requests pythonOlder,
, ruamel-yaml requests,
, scipy ruamel-yaml,
, seekpath scipy,
, setuptools seekpath,
, spglib setuptools,
, sympy spglib,
, tabulate sympy,
, uncertainties tabulate,
uncertainties,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -39,13 +40,11 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "materialsproject"; owner = "materialsproject";
repo = "pymatgen"; repo = "pymatgen";
rev= "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-vjasWQgwjtoM/6Y1HwK1otMFejRWEj+YBxaIYDDSeeo="; hash = "sha256-vjasWQgwjtoM/6Y1HwK1otMFejRWEj+YBxaIYDDSeeo=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
nativeBuildInputs = [ nativeBuildInputs = [
cython cython
@ -105,9 +104,7 @@ buildPythonPackage rec {
"test_unconverged" "test_unconverged"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "pymatgen" ];
"pymatgen"
];
meta = with lib; { meta = with lib; {
description = "A robust materials analysis code that defines core object representations for structures and molecules"; description = "A robust materials analysis code that defines core object representations for structures and molecules";
@ -115,6 +112,6 @@ buildPythonPackage rec {
changelog = "https://github.com/materialsproject/pymatgen/releases/tag/v${version}"; changelog = "https://github.com/materialsproject/pymatgen/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ psyanticy ]; maintainers = with maintainers; [ psyanticy ];
broken = stdenv.isDarwin; # tests segfault. that's bad. broken = stdenv.isDarwin; # tests segfault. that's bad.
}; };
} }