From 12a46601e9ca199d41b039cf585a4b779820baff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Mon, 28 May 2018 12:50:10 +0200 Subject: [PATCH] spectral-cube: init at 0.4.3 --- .../python-modules/spectral-cube/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/spectral-cube/default.nix diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix new file mode 100644 index 000000000000..3f54fefadf24 --- /dev/null +++ b/pkgs/development/python-modules/spectral-cube/default.nix @@ -0,0 +1,30 @@ +{ lib +, fetchPypi +, buildPythonPackage +, astropy +, radio_beam +, pytest }: + +buildPythonPackage rec { + pname = "spectral-cube"; + version = "0.4.3"; + + doCheck = false; # the tests requires several pytest plugins that are not in nixpkgs + + src = fetchPypi { + inherit pname version; + sha256 = "057g3mzlg5cy4wg2hh3p6gssn93rs6i7pswzhldvcq4k8m8hsl3b"; + }; + + propagatedBuildInputs = [ astropy radio_beam pytest ]; + + meta = { + description = "Library for reading and analyzing astrophysical spectral data cubes"; + homepage = http://radio-astro-tools.github.io; + license = lib.licenses.bsd3; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ smaret ]; + }; +} + + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index deb3e35e0a28..b766697186c8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18171,6 +18171,8 @@ EOF radio_beam = callPackage ../development/python-modules/radio_beam { }; + spectral-cube = callPackage ../development/python-modules/spectral-cube { }; + }); in fix' (extends overrides packages)