mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #92275 from jonringer/fix-google-music-scripts
google-music-scripts: fix build
This commit is contained in:
commit
59ce86a730
1 changed files with 21 additions and 4 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue