Unverified Commit b9fbb054 authored by Nick Cao's avatar Nick Cao
Browse files

python311Packages.audible: fix build

parent 6e7c1c16
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
, buildPythonPackage

  # build-system
, setuptools
, poetry-core

  # dependencies
, beautifulsoup4
@@ -12,6 +12,9 @@
, pillow
, pyaes
, rsa

  # test dependencies
, pytestCheckHook
}:

buildPythonPackage rec {
@@ -27,24 +30,21 @@ buildPythonPackage rec {
  };

  nativeBuildInputs = [
    setuptools
    poetry-core
  ];

  propagatedBuildInputs = [
    pillow
    beautifulsoup4
    httpx
    pbkdf2
    pillow
    pyaes
    rsa
  ];

  postPatch = ''
    sed -i "s/httpx.*/httpx',/" setup.py
  '';

  # has no tests
  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "audible" ];