1{ lib 2, buildPythonPackage 3, fetchPypi 4, matplotlib 5, numpy 6, pandas 7, pytestCheckHook 8, pythonOlder 9, scipy 10, tabulate 11}: 12 13buildPythonPackage rec { 14 pname = "acoustics"; 15 version = "0.2.6"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "sha256-0CvMhCUc+i7dPiHH+IXdlj+OjFh/l1wvnU4dmxQrzFI="; 22 }; 23 24 propagatedBuildInputs = [ 25 matplotlib 26 numpy 27 pandas 28 scipy 29 tabulate 30 ]; 31 32 checkInputs = [ 33 pytestCheckHook 34 ]; 35 36 preCheck = '' 37 export HOME=$TMPDIR 38 mkdir -p $HOME/.matplotlib 39 echo "backend: ps" > $HOME/.matplotlib/matplotlibrc 40 ''; 41 42 pytestFlagsArray = [ 43 "-Wignore::DeprecationWarning" 44 ]; 45 46 disabledTestPaths = [ 47 # All tests fail with TypeError 48 "tests/test_aio.py" 49 ]; 50 51 pythonImportsCheck = [ "acoustics" ]; 52 53 meta = with lib; { 54 description = "Python package for acousticians"; 55 maintainers = with maintainers; [ fridh ]; 56 license = with licenses; [ bsd3 ]; 57 homepage = "https://github.com/python-acoustics/python-acoustics"; 58 }; 59}