Unverified Commit f7059566 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #267868 from a-n-n-a-l-e-e/acoustics-update

python311Packages.acoustics: 0.2.6 -> 0.2.6-unstable-2023-08-20; fix build
parents 924cd5c3 27f4ecf8
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, flit-core
, matplotlib
, numpy
@@ -13,15 +13,17 @@

buildPythonPackage rec {
  pname = "acoustics";
  version = "0.2.6";
  version = "0.2.6-unstable-2023-08-20";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-0CvMhCUc+i7dPiHH+IXdlj+OjFh/l1wvnU4dmxQrzFI=";
  src = fetchFromGitHub {
    owner = "python-acoustics";
    repo  = "python-acoustics";
    rev = "99d79206159b822ea2f4e9d27c8b2fbfeb704d38";
    hash = "sha256-/4bVjlhj8ihpAFHEWPaZ/xBILi3rb8f0NmwAexJCg+o=";
  };
  format = "pyproject";

  nativeBuildInputs = [ flit-core ];

@@ -47,11 +49,6 @@ buildPythonPackage rec {
    "-Wignore::DeprecationWarning"
  ];

  disabledTestPaths = [
    # ValueError: Unknown window type: "hanning"
    "tests/standards/test_iso_1996_2_2007.py"
  ];

  pythonImportsCheck = [ "acoustics" ];

  meta = with lib; {