From 690131976e9a00f25f3abe8e8b3bc75d694e45d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Sat, 13 Nov 2021 15:54:37 +0100 Subject: [PATCH] python3Packages.casa-formats.io: init at 0.1 Co-authored-by: Dmitry Kalinkin Co-authored-by: Fabian Affolter --- .../casa-formats-io/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/casa-formats-io/default.nix diff --git a/pkgs/development/python-modules/casa-formats-io/default.nix b/pkgs/development/python-modules/casa-formats-io/default.nix new file mode 100644 index 000000000000..53ee89c5f941 --- /dev/null +++ b/pkgs/development/python-modules/casa-formats-io/default.nix @@ -0,0 +1,33 @@ +{ lib +, fetchPypi +, buildPythonPackage +, astropy +, dask +, numpy +}: + +buildPythonPackage rec { + pname = "casa-formats-io"; + version = "0.1"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + sha256 = "16rypj65wdfxxrilxfhbk563lxv86if4vvs9zfq3f8bkzdr8xl9s"; + }; + + propagatedBuildInputs = [ astropy dask numpy ]; + + # Tests require a large (800 Mb) dataset + doCheck = false; + + pythonImportsCheck = [ "casa_formats_io" ]; + + meta = { + description = "Dask-based reader for CASA data"; + homepage = "http://radio-astro-tools.github.io"; + license = lib.licenses.lgpl2Only; + maintainers = with lib.maintainers; [ smaret ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c63a35749259..85fbdd63f0be 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1383,6 +1383,8 @@ in { cartopy = callPackage ../development/python-modules/cartopy { }; + casa-formats-io = callPackage ../development/python-modules/casa-formats-io { }; + casbin = callPackage ../development/python-modules/casbin { }; case = callPackage ../development/python-modules/case { };