nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, numpy
6, astropy
7, astropy-helpers
8, matplotlib
9, reproject
10, pyavm
11, pyregion
12, pillow
13, scikitimage
14, cython
15, shapely
16, pytest
17, pytest-astropy
18}:
19
20buildPythonPackage rec {
21 pname = "aplpy";
22 version = "2.1.0";
23 format = "pyproject";
24
25 src = fetchPypi {
26 pname = "aplpy";
27 inherit version;
28 sha256 = "sha256-KCdmBwQWt7IfHsjq7pWlbSISEpfQZDyt+SQSTDaUCV4=";
29 };
30
31 propagatedBuildInputs = [
32 numpy
33 cython
34 astropy
35 matplotlib
36 reproject
37 pyavm
38 pyregion
39 pillow
40 scikitimage
41 shapely
42 ];
43
44 nativeBuildInputs = [ astropy-helpers ];
45 checkInputs = [ pytest pytest-astropy ];
46
47 checkPhase = ''
48 OPENMP_EXPECTED=0 pytest aplpy
49 '';
50
51 meta = with lib; {
52 description = "The Astronomical Plotting Library in Python";
53 homepage = "http://aplpy.github.io";
54 license = licenses.mit;
55 maintainers = [ maintainers.smaret ];
56 };
57}