google-music-scripts: fix build
This commit is contained in:
parent
b19523ba23
commit
2e050546b8
@ -1,19 +1,36 @@
|
|||||||
{ lib, python3 }:
|
{ 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 {
|
buildPythonApplication rec {
|
||||||
pname = "google-music-scripts";
|
pname = "google-music-scripts";
|
||||||
version = "4.3.0";
|
version = "4.5.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0dykjhqklbpqr1lvls0bgf6xkwvslj37lx4q8522hjbs150pwjmq";
|
sha256 = "0apwgj86whrc077dfymvyb4qwj19bawyrx49g4kg364895v0rbbq";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# pendulum pinning was to prevent PEP517 from trying to build from source
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
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 = [
|
propagatedBuildInputs = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user