summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyavm/default.nix
blob: c5127be1a877cb72ad01134bb20189b1aa64a04d (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
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, astropy
, astropy-helpers
, pillow
}:

buildPythonPackage rec {
  pname = "pyavm";
  version = "0.9.5";

  src = fetchPypi {
    pname = "PyAVM";
    inherit version;
    sha256 = "sha256-gV78ypvYwohHmdjP3lN5F97PfmxuV91tvw5gsYeZ7i8=";
  };

  propagatedBuildInputs = [
    astropy-helpers
  ];

  checkInputs = [
    astropy
    pillow
    pytestCheckHook
  ];

  # Disable automatic update of the astropy-helper module
  postPatch = ''
    substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
  '';

  pythonImportsCheck = [ "pyavm" ];

  meta = with lib; {
    description = "Simple pure-python AVM meta-data handling";
    homepage = "https://astrofrog.github.io/pyavm/";
    license = licenses.mit;
    maintainers = with maintainers; [ smaret ];
  };
}