Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ytmusicapi / default.nix
blob40af2c4fb629fc8a2d86c95b597ae60bb9699e86
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , requests
6 , setuptools
7 , setuptools-scm
8 }:
10 buildPythonPackage rec {
11   pname = "ytmusicapi";
12   version = "1.3.2";
13   format = "pyproject";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "sigma67";
19     repo = "ytmusicapi";
20     rev = "refs/tags/${version}";
21     hash = "sha256-vDkrKVqyisPkswvfb+UPH95mehwNgyFxRmeT+1UHvXs=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     setuptools-scm
27   ];
29   SETUPTOOLS_SCM_PRETEND_VERSION = version;
31   propagatedBuildInputs = [
32     requests
33   ];
35   doCheck = false; # requires network access
37   pythonImportsCheck = [
38     "ytmusicapi"
39   ];
41   meta = with lib; {
42     description = "Python API for YouTube Music";
43     homepage = "https://github.com/sigma67/ytmusicapi";
44     changelog = "https://github.com/sigma67/ytmusicapi/releases/tag/${version}";
45     license = licenses.mit;
46     maintainers = with maintainers; [ dotlambda ];
47   };