Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.aplpy: init at 2.0.3 #55711

Merged
merged 6 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions pkgs/development/python-modules/aplpy/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
33 changes: 33 additions & 0 deletions pkgs/development/python-modules/astropy-healpix/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, astropy
, astropy-helpers
}:

buildPythonPackage rec {
pname = "astropy-healpix";
version = "0.4";

doCheck = false; # tests require pytest-astropy

src = fetchPypi {
inherit pname version;
sha256 = "8c9709ac923759c92eca6d2e623e734d0f417eed40ba835b77d99dec09e51aa2";
};

propagatedBuildInputs = [ numpy astropy astropy-helpers ];

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

meta = with lib; {
description = "BSD-licensed HEALPix for Astropy";
homepage = https://github.com/astropy/astropy-healpix;
license = licenses.bsd3;
maintainers = [ maintainers.smaret ];
};
}
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/astropy-helpers/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
}:

buildPythonPackage rec {
pname = "astropy-helpers";
version = "3.1";

disabled = !isPy3k;

doCheck = false; # tests requires sphinx-astropy

src = fetchPypi {
inherit pname version;
sha256 = "37caf1f21bfdf653f7bb9f5b070dc1bb59cd70c0e09f9c5742401f57400a6e52";
};

meta = with lib; {
description = "Utilities for building and installing Astropy, Astropy affiliated packages, and their respective documentation";
homepage = https://github.com/astropy/astropy-helpers;
license = licenses.bsd3;
maintainers = [ maintainers.smaret ];
};
}
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/pyavm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, astropy
, astropy-helpers
, pillow
}:

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

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

propagatedBuildInputs = [ astropy-helpers ];

checkInputs = [ pytest astropy pillow ];

checkPhase = "pytest";

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

meta = with lib; {
description = "Simple pure-python AVM meta-data handling";
homepage = http://astrofrog.github.io/pyavm/;
license = licenses.mit;
maintainers = [ maintainers.smaret ];
};
}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/pyregion/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, pyparsing
, numpy
, cython
, astropy
}:

buildPythonPackage rec {
pname = "pyregion";
version = "2.0";

doCheck = false; # tests require pytest-astropy

src = fetchPypi {
inherit pname version;
sha256 = "a8ac5f764b53ec332f6bc43f6f2193ca13e8b7d5a3fb2e20ced6b2ea42a9d094";
};

propagatedBuildInputs = [
pyparsing
numpy
cython
astropy
];

meta = with lib; {
description = "Python parser for ds9 region files";
homepage = https://github.com/astropy/pyregion;
license = licenses.mit;
maintainers = [ maintainers.smaret ];
};
}
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/reproject/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, astropy
, astropy-healpix
, astropy-helpers
, scipy
}:

buildPythonPackage rec {
pname = "reproject";
version = "0.4";

doCheck = false; # tests require pytest-astropy

src = fetchPypi {
inherit pname version;
sha256 = "dbbb18a8b211292c7ce61121b8538fc279540337be1c05cabc7570c5aca6d734";
};

propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ];

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

meta = with lib; {
description = "Reproject astronomical images";
homepage = https://reproject.readthedocs.io;
license = licenses.bsd3;
maintainers = [ maintainers.smaret ];
};
}
12 changes: 12 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ in {

ansicolor = callPackage ../development/python-modules/ansicolor { };

aplpy = callPackage ../development/python-modules/aplpy { };

argon2_cffi = callPackage ../development/python-modules/argon2_cffi { };

asana = callPackage ../development/python-modules/asana { };
Expand All @@ -194,6 +196,10 @@ in {

astropy = callPackage ../development/python-modules/astropy { };

astropy-helpers = callPackage ../development/python-modules/astropy-helpers { };

astropy-healpix = callPackage ../development/python-modules/astropy-healpix { };

astroquery = callPackage ../development/python-modules/astroquery { };

asttokens = callPackage ../development/python-modules/asttokens { };
Expand Down Expand Up @@ -794,6 +800,8 @@ in {

relatorio = callPackage ../development/python-modules/relatorio { };

reproject = callPackage ../development/python-modules/reproject { };

remotecv = callPackage ../development/python-modules/remotecv { };

pyzufall = callPackage ../development/python-modules/pyzufall { };
Expand Down Expand Up @@ -1520,6 +1528,8 @@ in {

cffi = callPackage ../development/python-modules/cffi { };

pyavm = callPackage ../development/python-modules/pyavm { };

pycollada = callPackage ../development/python-modules/pycollada { };

pycontracts = callPackage ../development/python-modules/pycontracts { };
Expand Down Expand Up @@ -4957,6 +4967,8 @@ in {

potr = callPackage ../development/python-modules/potr {};

pyregion = callPackage ../development/python-modules/pyregion {};

python-u2flib-host = callPackage ../development/python-modules/python-u2flib-host { };

pluggy = callPackage ../development/python-modules/pluggy {};
Expand Down