diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a1997c2f765..107baf2aca9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3536,6 +3536,11 @@ github = "sleexyz"; name = "Sean Lee"; }; + smaret = { + email = "sebastien.maret@icloud.com"; + github = "smaret"; + name = "Sébastien Maret"; + }; smironov = { email = "grrwlf@gmail.com"; github = "grwlf"; diff --git a/pkgs/development/python-modules/radio_beam/default.nix b/pkgs/development/python-modules/radio_beam/default.nix new file mode 100644 index 00000000000..07a05902a36 --- /dev/null +++ b/pkgs/development/python-modules/radio_beam/default.nix @@ -0,0 +1,28 @@ +{ lib +, fetchPypi +, buildPythonPackage +, astropy }: + +buildPythonPackage rec { + pname = "radio_beam"; + version = "0.2"; + + doCheck = false; # the tests requires several pytest plugins that are not in nixpkgs + + src = fetchPypi { + inherit pname version; + sha256 = "0gbnwnk89n8z0xwn41rc7wpr0fwrzkvxficyki3dyqbxq7y3qfrv"; + }; + + propagatedBuildInputs = [ astropy ]; + + meta = { + description = "Tools for Beam IO and Manipulation"; + homepage = http://radio-astro-tools.github.io; + license = lib.licenses.bsd3; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ smaret ]; + }; +} + + 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 00000000000..3f54fefadf2 --- /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 7023ff68e71..0a230853087 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18154,6 +18154,11 @@ EOF pyogg = callPackage ../development/python-modules/pyogg { }; rubymarshal = callPackage ../development/python-modules/rubymarshal { }; + + radio_beam = callPackage ../development/python-modules/radio_beam { }; + + spectral-cube = callPackage ../development/python-modules/spectral-cube { }; + }); in fix' (extends overrides packages)