fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
astropy,
|
|
qtpy,
|
|
pyqt6,
|
|
pyqt-builder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
scipy,
|
|
matplotlib,
|
|
spectral-cube,
|
|
pytestCheckHook,
|
|
pytest-astropy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pvextractor";
|
|
version = "0.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "radio-astro-tools";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-TjwoTtoGWU6C6HdFuS+gJj69PUnfchPHs7UjFqwftVQ=";
|
|
};
|
|
|
|
buildInputs = [ pyqt-builder ];
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
propagatedBuildInputs = [
|
|
astropy
|
|
scipy
|
|
matplotlib
|
|
pyqt6
|
|
qtpy
|
|
spectral-cube
|
|
];
|
|
|
|
# collecting ... qt.qpa.xcb: could not connect to display
|
|
# qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
|
|
doCheck = false;
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-astropy
|
|
];
|
|
|
|
pythonImportsCheck = [ "pvextractor" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://pvextractor.readthedocs.io";
|
|
description = "Position-velocity diagram extractor";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ifurther ];
|
|
};
|
|
}
|