about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/google-music-utils/default.nix
blob: 801b4b78a1782d1b69be8986033ecf3389578a70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, audio-metadata
, multidict
, poetry
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "google-music-utils";
  version = "2.5.0";

  # Pypi tarball doesn't contain tests
  src = fetchFromGitHub {
    owner = "thebigmunch";
    repo = "google-music-utils";
    rev = version;
    sha256 = "0vwbrgakk23fypjspmscz4gllnb3dksv2njy4j4bm8vyr6fwbi5f";
  };
  format = "pyproject";

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'multidict = "^4.0"' 'multidict = ">4.0"'
  '';

  nativeBuildInputs = [ poetry ];

  propagatedBuildInputs = [ audio-metadata multidict ];

  checkInputs = [ pytestCheckHook ];

  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 ];
  };
}