google-music-scripts: fix build

gstqt5
Jonathan Ringer 2020-07-04 07:42:19 -07:00
parent b19523ba23
commit 2e050546b8
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
1 changed files with 21 additions and 4 deletions

View File

@ -1,19 +1,36 @@
{ lib, python3 }:
with python3.pkgs;
let
py = python3.override {
packageOverrides = self: super: {
loguru = super.loguru.overridePythonAttrs (oldAttrs: rec {
version = "0.4.0";
src = oldAttrs.src.override {
inherit version;
sha256 = "0j47cg3gi8in4z6z4w3by6x02mpkkfl78gr85xjn5rg0nxiz7pfm";
};
});
};
};
in
with py.pkgs;
buildPythonApplication rec {
pname = "google-music-scripts";
version = "4.3.0";
version = "4.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "0dykjhqklbpqr1lvls0bgf6xkwvslj37lx4q8522hjbs150pwjmq";
sha256 = "0apwgj86whrc077dfymvyb4qwj19bawyrx49g4kg364895v0rbbq";
};
# pendulum pinning was to prevent PEP517 from trying to build from source
postPatch = ''
substituteInPlace setup.py \
--replace "audio-metadata>=0.8,<0.9" "audio-metadata"
--replace "tomlkit>=0.5,<0.6" "tomlkit" \
--replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum"
'';
propagatedBuildInputs = [