Merge pull request #55711 from smaret/aplpy

pythonPackages.aplpy: init at 2.0.3
This commit is contained in:
Robert Schütz 2019-03-15 16:36:03 +01:00 committed by GitHub
commit d50fe701af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 229 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -178,6 +178,8 @@ in {
ansicolor = callPackage ../development/python-modules/ansicolor { }; ansicolor = callPackage ../development/python-modules/ansicolor { };
aplpy = callPackage ../development/python-modules/aplpy { };
argon2_cffi = callPackage ../development/python-modules/argon2_cffi { }; argon2_cffi = callPackage ../development/python-modules/argon2_cffi { };
asana = callPackage ../development/python-modules/asana { }; asana = callPackage ../development/python-modules/asana { };
@ -194,6 +196,10 @@ in {
astropy = callPackage ../development/python-modules/astropy { }; 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 { }; astroquery = callPackage ../development/python-modules/astroquery { };
asttokens = callPackage ../development/python-modules/asttokens { }; asttokens = callPackage ../development/python-modules/asttokens { };
@ -794,6 +800,8 @@ in {
relatorio = callPackage ../development/python-modules/relatorio { }; relatorio = callPackage ../development/python-modules/relatorio { };
reproject = callPackage ../development/python-modules/reproject { };
remotecv = callPackage ../development/python-modules/remotecv { }; remotecv = callPackage ../development/python-modules/remotecv { };
pyzufall = callPackage ../development/python-modules/pyzufall { }; pyzufall = callPackage ../development/python-modules/pyzufall { };
@ -1526,6 +1534,8 @@ in {
cffi = callPackage ../development/python-modules/cffi { }; cffi = callPackage ../development/python-modules/cffi { };
pyavm = callPackage ../development/python-modules/pyavm { };
pycollada = callPackage ../development/python-modules/pycollada { }; pycollada = callPackage ../development/python-modules/pycollada { };
pycontracts = callPackage ../development/python-modules/pycontracts { }; pycontracts = callPackage ../development/python-modules/pycontracts { };
@ -4977,6 +4987,8 @@ in {
potr = callPackage ../development/python-modules/potr {}; potr = callPackage ../development/python-modules/potr {};
pyregion = callPackage ../development/python-modules/pyregion {};
python-u2flib-host = callPackage ../development/python-modules/python-u2flib-host { }; python-u2flib-host = callPackage ../development/python-modules/python-u2flib-host { };
pluggy = callPackage ../development/python-modules/pluggy {}; pluggy = callPackage ../development/python-modules/pluggy {};