1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 dacite,
6 python-dateutil,
7 pythonOlder,
8 requests,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "soundcloud-v2";
14 version = "1.3.7";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "sha256-DiaCnIEXKSxyE4+MCq0KwdKWUGfWO3LAVwsMNEkOmqc=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [
27 dacite
28 python-dateutil
29 requests
30 ];
31
32 # tests require network
33 doCheck = false;
34
35 pythonImportsCheck = [ "soundcloud" ];
36
37 meta = with lib; {
38 description = "Python wrapper for the v2 SoundCloud API";
39 homepage = "https://github.com/7x11x13/soundcloud.py";
40 license = licenses.mit;
41 maintainers = with maintainers; [ ];
42 };
43}