depot/third_party/nixpkgs/pkgs/development/python-modules/pvextractor/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

60 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 ];
};
}