at master 986 B view raw
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 6 # build-system 7 setuptools, 8 pkg-config, 9 cython, 10 pkgconfig, 11 12 # Dependencies 13 numpy, 14 fftw, 15 lapack, 16 17 # Check 18 pytestCheckHook, 19}: 20buildPythonPackage rec { 21 pname = "libtfr"; 22 version = "2.1.9"; 23 pyproject = true; 24 25 src = fetchPypi { 26 inherit pname version; 27 hash = "sha256-GxRjkQ6ng2wNONRit8ZsCwWsVlXy//7taeU6np/5aU0="; 28 }; 29 30 nativeBuildInputs = [ 31 pkg-config 32 cython 33 ]; 34 35 buildInputs = [ 36 fftw 37 lapack 38 ]; 39 40 build-system = [ 41 setuptools 42 ]; 43 44 dependencies = [ 45 numpy 46 pkgconfig 47 ]; 48 49 nativeCheckInputs = [ 50 pytestCheckHook 51 ]; 52 53 pythonImportsCheck = [ "libtfr" ]; 54 55 meta = { 56 description = "fast multitaper conventional and reassignment spectrograms"; 57 homepage = "https://melizalab.github.io/libtfr/"; 58 downloadPage = "https://github.com/melizalab/libtfr"; 59 license = lib.licenses.gpl2Plus; 60 maintainers = with lib.maintainers; [ 61 RossSmyth 62 ]; 63 }; 64}