summary refs log tree commit diff
path: root/pkgs/development/python-modules/atomman/default.nix
blob: d873700f32a630728073dcfaae2fc8a288558cf8 (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
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, cython
, datamodeldict
, matplotlib
, numericalunits
, numpy
, pandas
, pytest
, scipy
, toolz
, xmltodict
}:

buildPythonPackage rec {
  version = "1.3.0";
  pname = "atomman";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "usnistgov";
    repo  = "atomman";
    rev = "v${version}";
    sha256 = "09pfykd96wmw00s3kgabghykjn8b4yjml4ybpi7kwy7ygdmzcx51";
  };

  checkInputs = [ pytest ];
  propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits toolz ];

  checkPhase = ''
    py.test tests -k 'not test_atomic'
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/usnistgov/atomman/;
    description = "Atomistic Manipulation Toolkit";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}