diff options
author | Sébastien Maret <sebastien.maret@icloud.com> | 2019-02-13 16:22:16 +0100 |
---|---|---|
committer | Sébastien Maret <sebastien.maret@icloud.com> | 2019-03-15 14:42:01 +0100 |
commit | 16fbffa6df66ac1c6c524d0bdf0bc60fbc536af0 (patch) | |
tree | 1bf6b627d53949105b5d4b5fb6ec27e703b22638 /pkgs/development/python-modules/aplpy | |
parent | 646eb81a377354cc8fe9116ced60d840e67e9a98 (diff) |
pythonPackages.aplpy: init at 2.0.3
Diffstat (limited to 'pkgs/development/python-modules/aplpy')
-rw-r--r-- | pkgs/development/python-modules/aplpy/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aplpy/default.nix b/pkgs/development/python-modules/aplpy/default.nix new file mode 100644 index 0000000000000..a173a58032d9e --- /dev/null +++ b/pkgs/development/python-modules/aplpy/default.nix @@ -0,0 +1,52 @@ +{ lib +, buildPythonPackage +, fetchPypi +, numpy +, astropy +, astropy-helpers +, matplotlib +, reproject +, pyavm +, pyregion +, pillow +, scikitimage +, shapely +}: + +buildPythonPackage rec { + pname = "aplpy"; + version = "2.0.3"; + + doCheck = false; # tests require pytest-astropy + + src = fetchPypi { + pname = "APLpy"; + inherit version; + sha256 = "239f3d83635ca4251536aeb577df7c60df77fc4d658097b92094719739aec3f3"; + }; + + propagatedBuildInputs = [ + numpy + astropy + astropy-helpers + matplotlib + reproject + pyavm + pyregion + pillow + scikitimage + shapely + ]; + + # Disable automatic update of the astropy-helper module + postPatch = '' + substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" + ''; + + meta = with lib; { + description = "The Astronomical Plotting Library in Python"; + homepage = http://aplpy.github.io; + license = licenses.mit; + maintainers = [ maintainers.smaret ]; + }; +} |