depot/third_party/nixpkgs/pkgs/development/python-modules/acoustics/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

34 lines
889 B
Nix

{ lib, buildPythonPackage, fetchPypi
, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }:
buildPythonPackage rec {
pname = "acoustics";
version = "0.2.4.post0";
checkInputs = [ pytest ];
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
src = fetchPypi {
inherit pname version;
sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d";
};
checkPhase = ''
export HOME=$TMPDIR
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
pushd tests
py.test -Wignore::DeprecationWarning ./.
popd
'';
disabled = pythonOlder "3.6";
meta = with lib; {
description = "A package for acousticians";
maintainers = with maintainers; [ fridh ];
license = with licenses; [ bsd3 ];
homepage = "https://github.com/python-acoustics/python-acoustics";
};
}