mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-29 05:25:48 +00:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
47 lines
960 B
Nix
47 lines
960 B
Nix
{
|
|
lib,
|
|
astropy,
|
|
buildPythonPackage,
|
|
dask,
|
|
fetchPypi,
|
|
numpy,
|
|
oldest-supported-numpy,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "casa-formats-io";
|
|
version = "0.3.0";
|
|
format = "setuptools";
|
|
prproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "casa_formats_io";
|
|
inherit version;
|
|
hash = "sha256-FpQj0XeZ7vvOzUM/+5qG6FRwNXl3gzoUBItYdQ1M4m4=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
nativeBuildInputs = [ oldest-supported-numpy ];
|
|
|
|
dependencies = [
|
|
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 = "https://casa-formats-io.readthedocs.io/";
|
|
changelog = "https://github.com/radio-astro-tools/casa-formats-io/blob/v${version}/CHANGES.rst";
|
|
license = lib.licenses.lgpl2Only;
|
|
maintainers = with lib.maintainers; [ smaret ];
|
|
};
|
|
}
|