mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
3da18c398d
Diff: https://github.com/astropy/photutils/compare/refs/tags/2.0.0...2.0.2 Changelog: https://github.com/astropy/photutils/blob/2.0.2/CHANGES.rst
87 lines
1.4 KiB
Nix
87 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
astropy,
|
|
bottleneck,
|
|
buildPythonPackage,
|
|
cython,
|
|
extension-helpers,
|
|
fetchFromGitHub,
|
|
gwcs,
|
|
matplotlib,
|
|
numpy,
|
|
pythonOlder,
|
|
rasterio,
|
|
scikit-image,
|
|
scikit-learn,
|
|
scipy,
|
|
setuptools-scm,
|
|
setuptools,
|
|
shapely,
|
|
tqdm,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "photutils";
|
|
version = "2.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "astropy";
|
|
repo = "photutils";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-gXtC6O8rXBBa8VMuqxshnJieAahv3bCY2C1BXNmJxb4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "'numpy>=2.0.0'," ""
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
extension-helpers
|
|
numpy
|
|
];
|
|
|
|
dependencies = [
|
|
astropy
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
optional-dependencies = {
|
|
all = [
|
|
bottleneck
|
|
gwcs
|
|
matplotlib
|
|
rasterio
|
|
scikit-image
|
|
scikit-learn
|
|
shapely
|
|
tqdm
|
|
];
|
|
};
|
|
|
|
# With 1.12.0 tests have issues importing modules
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "photutils" ];
|
|
|
|
meta = with lib; {
|
|
description = "Astropy package for source detection and photometry";
|
|
homepage = "https://github.com/astropy/photutils";
|
|
changelog = "https://github.com/astropy/photutils/blob/${version}/CHANGES.rst";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|