Files
nixpkgs/pkgs/development/python-modules/pvextractor/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

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