diff options
author | Jan van Brügge <supermanitu@gmail.com> | 2022-05-14 15:54:07 +0200 |
---|---|---|
committer | Jan van Brügge <supermanitu@gmail.com> | 2022-05-14 15:54:07 +0200 |
commit | 41ce59ddb9f851a2028a4bfa8a7659291f636ba1 (patch) | |
tree | 1c46ba3a8820dde493267220e325981828f0678a /pkgs | |
parent | a2dcd454c3fa568fd74c821e755e29f2a9760f74 (diff) |
pythonPackages.audible: init at 0.8.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/audible/default.nix | 29 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/audible/default.nix b/pkgs/development/python-modules/audible/default.nix new file mode 100644 index 0000000000000..987859fbcdd66 --- /dev/null +++ b/pkgs/development/python-modules/audible/default.nix @@ -0,0 +1,29 @@ +{ lib, fetchFromGitHub, buildPythonPackage, beautifulsoup4, httpx, pbkdf2, pillow, pyaes, rsa }: + +buildPythonPackage rec { + pname = "audible"; + version = "0.8.1"; + + src = fetchFromGitHub { + owner = "mkb79"; + repo = "Audible"; + rev = "v${version}"; + sha256 = "0fsb5av4s7fvpn0iryl8jj3lwffwlxgbwj46l3fidy0l58nq3b1d"; + }; + + propagatedBuildInputs = [ beautifulsoup4 httpx pbkdf2 pillow pyaes rsa ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace 'httpx>=0.20.*,<=0.22.*' 'httpx' + ''; + + pythonImportsCheck = [ "audible"]; + + meta = with lib; { + description = "A(Sync) Interface for internal Audible API written in pure Python"; + license = licenses.agpl3; + homepage = "https://github.com/mkb79/Audible"; + maintainers = with maintainers; [ jvanbruegge ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b675f93553777..f2ed747664fb1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -755,6 +755,8 @@ in { aubio = callPackage ../development/python-modules/aubio { }; + audible = callPackage ../development/python-modules/audible { }; + audio-metadata = callPackage ../development/python-modules/audio-metadata { }; audioread = callPackage ../development/python-modules/audioread { }; |