1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, astropy
6, astropy-helpers
7, pillow
8}:
9
10buildPythonPackage rec {
11 pname = "pyavm";
12 version = "0.9.5";
13
14 src = fetchPypi {
15 pname = "PyAVM";
16 inherit version;
17 sha256 = "sha256-gV78ypvYwohHmdjP3lN5F97PfmxuV91tvw5gsYeZ7i8=";
18 };
19
20 propagatedBuildInputs = [
21 astropy-helpers
22 ];
23
24 checkInputs = [
25 astropy
26 pillow
27 pytestCheckHook
28 ];
29
30 # Disable automatic update of the astropy-helper module
31 postPatch = ''
32 substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
33 '';
34
35 pythonImportsCheck = [ "pyavm" ];
36
37 meta = with lib; {
38 description = "Simple pure-python AVM meta-data handling";
39 homepage = "https://astrofrog.github.io/pyavm/";
40 license = licenses.mit;
41 maintainers = with maintainers; [ smaret ];
42 };
43}