mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
44 lines
769 B
Nix
44 lines
769 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
dacite,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "soundcloud-v2";
|
|
version = "1.6.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-RiUTFGwP/J7HKcHGFvT3Kw3NM/gUeMZCB/Jl8HLngkM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
dacite
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
# tests require network
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "soundcloud" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for the v2 SoundCloud API";
|
|
homepage = "https://github.com/7x11x13/soundcloud.py";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|