2021-01-09 10:05:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, audio-metadata
|
|
|
|
, multidict
|
|
|
|
, poetry
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-music-utils";
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "2.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Pypi tarball doesn't contain tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thebigmunch";
|
|
|
|
repo = "google-music-utils";
|
|
|
|
rev = version;
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "0vwbrgakk23fypjspmscz4gllnb3dksv2njy4j4bm8vyr6fwbi5f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-01-09 10:05:03 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'multidict = "^4.0"' 'multidict = ">4.0"'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
nativeBuildInputs = [ poetry ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ audio-metadata multidict ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/thebigmunch/google-music-utils";
|
|
|
|
description = "A set of utility functionality for google-music and related projects";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|