4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
63 lines
1.0 KiB
Nix
63 lines
1.0 KiB
Nix
{ lib, stdenv, buildPythonPackage, fetchPypi
|
|
, enum34
|
|
, glibcLocales
|
|
, matplotlib
|
|
, monty
|
|
, networkx
|
|
, numpy
|
|
, palettable
|
|
, pandas
|
|
, plotly
|
|
, pydispatcher
|
|
, requests
|
|
, ruamel_yaml
|
|
, scipy
|
|
, six
|
|
, spglib
|
|
, sympy
|
|
, tabulate
|
|
, uncertainties
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymatgen";
|
|
version = "2020.12.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a7ae7aba87e88965c3e1490f5b9742c95e06150f2fc73da69647a9366dd88018";
|
|
};
|
|
|
|
nativeBuildInputs = [ glibcLocales ];
|
|
|
|
propagatedBuildInputs = [
|
|
enum34
|
|
matplotlib
|
|
monty
|
|
networkx
|
|
numpy
|
|
palettable
|
|
pandas
|
|
plotly
|
|
pydispatcher
|
|
requests
|
|
ruamel_yaml
|
|
scipy
|
|
six
|
|
spglib
|
|
sympy
|
|
tabulate
|
|
uncertainties
|
|
];
|
|
|
|
# No tests in pypi tarball.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A robust materials analysis code that defines core object representations for structures and molecules";
|
|
homepage = "https://pymatgen.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
};
|
|
}
|