summary refs log tree commit diff
path: root/pkgs/development/python-modules/reproject
diff options
context:
space:
mode:
authorSébastien Maret <sebastien.maret@icloud.com>2019-02-13 16:15:23 +0100
committerSébastien Maret <sebastien.maret@icloud.com>2019-03-14 09:41:37 +0100
commitd81b59b027069387fe3e44778e76eadb2f0de604 (patch)
treec5078994c96776f10a18f597f71bf072719e5c03 /pkgs/development/python-modules/reproject
parenta068e9ffc2106fb6c6f4ae2c54bc1efff51dfc2f (diff)
downloadnixpkgs-d81b59b027069387fe3e44778e76eadb2f0de604.tar
nixpkgs-d81b59b027069387fe3e44778e76eadb2f0de604.tar.gz
nixpkgs-d81b59b027069387fe3e44778e76eadb2f0de604.tar.bz2
nixpkgs-d81b59b027069387fe3e44778e76eadb2f0de604.tar.lz
nixpkgs-d81b59b027069387fe3e44778e76eadb2f0de604.tar.xz
nixpkgs-d81b59b027069387fe3e44778e76eadb2f0de604.tar.zst
nixpkgs-d81b59b027069387fe3e44778e76eadb2f0de604.zip
pythonPackages.reproject: init at 0.4
Diffstat (limited to 'pkgs/development/python-modules/reproject')
-rw-r--r--pkgs/development/python-modules/reproject/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix
new file mode 100644
index 00000000000..f84508fe53c
--- /dev/null
+++ b/pkgs/development/python-modules/reproject/default.nix
@@ -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 ];
+  };
+}