depot/third_party/nixpkgs/pkgs/development/python-modules/pvextractor/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

62 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
];
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
# 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 ];
};
}