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