Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 48 lines 985 B view raw
1{ 2 lib, 3 astropy, 4 buildPythonPackage, 5 dask, 6 fetchPypi, 7 numpy, 8 oldest-supported-numpy, 9 pythonOlder, 10 setuptools-scm, 11}: 12 13buildPythonPackage rec { 14 pname = "casa-formats-io"; 15 version = "0.3.0"; 16 prproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchPypi { 21 pname = "casa_formats_io"; 22 inherit version; 23 hash = "sha256-FpQj0XeZ7vvOzUM/+5qG6FRwNXl3gzoUBItYdQ1M4m4="; 24 }; 25 26 build-system = [ setuptools-scm ]; 27 28 nativeBuildInputs = [ oldest-supported-numpy ]; 29 30 dependencies = [ 31 astropy 32 dask 33 numpy 34 ]; 35 36 # Tests require a large (800 Mb) dataset 37 doCheck = false; 38 39 pythonImportsCheck = [ "casa_formats_io" ]; 40 41 meta = with lib; { 42 description = "Dask-based reader for CASA data"; 43 homepage = "https://casa-formats-io.readthedocs.io/"; 44 changelog = "https://github.com/radio-astro-tools/casa-formats-io/blob/v${version}/CHANGES.rst"; 45 license = licenses.lgpl2Only; 46 maintainers = with maintainers; [ smaret ]; 47 }; 48}