Merge pull request #92275 from jonringer/fix-google-music-scripts

google-music-scripts: fix build
This commit is contained in:
Maximilian Bosch 2020-07-04 22:47:54 +02:00 committed by GitHub
commit 59ce86a730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = [