summary refs log tree commit diff
path: root/pkgs/development/python-modules/spglib/default.nix
blob: e04589f3dfcd595ee1f2320f712903aa2d4dba45 (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
{ stdenv, buildPythonPackage, fetchPypi, numpy, python }:

buildPythonPackage rec {
  pname = "spglib";
  version = "1.10.3.75";

  src = fetchPypi {
    inherit pname version;
    sha256 = "347fea7c87f7d2162fabb780560665d21a43cbd7a0af08328130ba26e6422143";
  };

  propagatedBuildInputs = [ numpy ];

  checkPhase = ''
    cd test
    ${python.interpreter} -m unittest discover -bv
  '';

  meta = with stdenv.lib; {
    description = "Python bindings for C library for finding and handling crystal symmetries";
    homepage = https://atztogo.github.io/spglib;
    license = licenses.bsd3;
    maintainers = with maintainers; [ psyanticy ];
  };

}