Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 matplotlib, 7 numpy, 8 pandas, 9 pytestCheckHook, 10 pythonOlder, 11 scipy, 12 tabulate, 13}: 14 15buildPythonPackage rec { 16 pname = "acoustics"; 17 version = "0.2.6-unstable-2023-08-20"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "python-acoustics"; 24 repo = "python-acoustics"; 25 rev = "99d79206159b822ea2f4e9d27c8b2fbfeb704d38"; 26 hash = "sha256-/4bVjlhj8ihpAFHEWPaZ/xBILi3rb8f0NmwAexJCg+o="; 27 }; 28 29 nativeBuildInputs = [ flit-core ]; 30 31 propagatedBuildInputs = [ 32 matplotlib 33 numpy 34 pandas 35 scipy 36 tabulate 37 ]; 38 39 nativeCheckInputs = [ pytestCheckHook ]; 40 41 preCheck = '' 42 export HOME=$TMPDIR 43 mkdir -p $HOME/.matplotlib 44 echo "backend: ps" > $HOME/.matplotlib/matplotlibrc 45 ''; 46 47 pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; 48 49 pythonImportsCheck = [ "acoustics" ]; 50 51 meta = with lib; { 52 description = "Python package for acousticians"; 53 license = with licenses; [ bsd3 ]; 54 homepage = "https://github.com/python-acoustics/python-acoustics"; 55 }; 56}