diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/audible/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/audible/default.nix | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/audible/default.nix b/nixpkgs/pkgs/development/python-modules/audible/default.nix index 69da14683a09..bd82dabbc83f 100644 --- a/nixpkgs/pkgs/development/python-modules/audible/default.nix +++ b/nixpkgs/pkgs/development/python-modules/audible/default.nix @@ -1,27 +1,52 @@ -{ lib, fetchFromGitHub, buildPythonPackage, beautifulsoup4, httpx, pbkdf2, pillow, pyaes, rsa }: +{ lib +, fetchFromGitHub +, buildPythonPackage + + # build-system +, poetry-core + + # dependencies +, beautifulsoup4 +, httpx +, pbkdf2 +, pillow +, pyaes +, rsa + + # test dependencies +, pytestCheckHook +}: buildPythonPackage rec { pname = "audible"; - version = "0.8.2"; - format = "setuptools"; + version = "0.9.1"; + pyproject = true; src = fetchFromGitHub { owner = "mkb79"; repo = "Audible"; rev = "refs/tags/v${version}"; - hash = "sha256-SIEDBuMCC/Hap2mGVbKEFic96ClN369SEsV06Sg+poY="; + hash = "sha256-qLU8FjJBPKFgjpumPqRiiMBwZi+zW46iEmWM8UerMgs="; }; - propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ]; + nativeBuildInputs = [ + poetry-core + ]; - postPatch = '' - sed -i "s/httpx.*/httpx',/" setup.py - ''; + propagatedBuildInputs = [ + pillow + beautifulsoup4 + httpx + pbkdf2 + pyaes + rsa + ]; - # has no tests - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "audible"]; + pythonImportsCheck = [ "audible" ]; meta = with lib; { description = "A(Sync) Interface for internal Audible API written in pure Python"; |