1{
2 lib,
3 astropy,
4 buildPythonPackage,
5 fetchPypi,
6 matplotlib,
7 numpy,
8 pillow,
9 pyavm,
10 pyregion,
11 pytest-astropy,
12 pytestCheckHook,
13 reproject,
14 scikit-image,
15 setuptools,
16 setuptools-scm,
17 shapely,
18}:
19
20buildPythonPackage rec {
21 pname = "aplpy";
22 version = "2.2.0";
23 pyproject = true;
24
25 src = fetchPypi {
26 pname = "aplpy";
27 inherit version;
28 hash = "sha256-oUylUM7/6OyEJFrpkr9MjXilXC/ZIdBQ5au4cvyZiA0=";
29 };
30
31 build-system = [
32 setuptools
33 setuptools-scm
34 ];
35
36 dependencies = [
37 astropy
38 matplotlib
39 numpy
40 pillow
41 pyavm
42 pyregion
43 reproject
44 scikit-image
45 shapely
46 ];
47
48 nativeCheckInputs = [
49 pytest-astropy
50 pytestCheckHook
51 ];
52
53 preCheck = ''
54 OPENMP_EXPECTED=0
55 '';
56
57 pythonImportsCheck = [ "aplpy" ];
58
59 meta = with lib; {
60 description = "Astronomical Plotting Library in Python";
61 homepage = "http://aplpy.github.io";
62 license = licenses.mit;
63 maintainers = with maintainers; [ smaret ];
64 };
65}