about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dscribe/default.nix
blob: 0df77d3e680588dd60d6bbae83723a5f5770d444 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ buildPythonPackage
, lib
, fetchFromGitHub
, numpy
, scipy
, ase
, joblib
, sparse
, pybind11
, scikit-learn
, pytestCheckHook
}:

buildPythonPackage rec {
  name = "dscribe";
  version = "2.1.1";

  src = fetchFromGitHub {
    owner = "singroup";
    repo = "dscribe";
    rev = "v${version}";
    fetchSubmodules = true; # Bundles a specific version of Eigen
    hash = "sha256-2JY24cR2ie4+4svVWC4rm3Iy6Wfg0n2vkINz032kPWc=";
  };

  pyproject = true;

  build-system = [
    pybind11
  ];

  dependencies = [
    numpy
    scipy
    ase
    joblib
    sparse
    scikit-learn
  ];

  meta = with lib; {
    description = "Machine learning descriptors for atomistic systems";
    homepage = "https://github.com/SINGROUP/dscribe";
    license = licenses.asl20;
    maintainers = [ maintainers.sheepforce ];
  };
}