nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 astropy, 6 qtpy, 7 pyqt6, 8 pyqt-builder, 9 setuptools, 10 setuptools-scm, 11 scipy, 12 matplotlib, 13 spectral-cube, 14 pytestCheckHook, 15 pytest-astropy, 16}: 17 18buildPythonPackage rec { 19 pname = "pvextractor"; 20 version = "0.4"; 21 format = "setuptools"; 22 23 src = fetchFromGitHub { 24 owner = "radio-astro-tools"; 25 repo = "pvextractor"; 26 tag = "v${version}"; 27 sha256 = "sha256-TjwoTtoGWU6C6HdFuS+gJj69PUnfchPHs7UjFqwftVQ="; 28 }; 29 30 buildInputs = [ pyqt-builder ]; 31 nativeBuildInputs = [ 32 setuptools 33 setuptools-scm 34 ]; 35 propagatedBuildInputs = [ 36 astropy 37 scipy 38 matplotlib 39 pyqt6 40 qtpy 41 spectral-cube 42 ]; 43 44 # collecting ... qt.qpa.xcb: could not connect to display 45 # qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. 46 doCheck = false; 47 48 nativeCheckInputs = [ 49 pytestCheckHook 50 pytest-astropy 51 ]; 52 53 pythonImportsCheck = [ "pvextractor" ]; 54 55 meta = { 56 homepage = "http://pvextractor.readthedocs.io"; 57 description = "Position-velocity diagram extractor"; 58 license = lib.licenses.bsd3; 59 maintainers = with lib.maintainers; [ ifurther ]; 60 }; 61}