Merge pull request #310439 from drawbu/fix-tidal
python3Packages.tidalapi: fix build error; python3Packages.mpegdash: init at 0.4.0
This commit is contained in:
commit
3708b2a1e4
3 changed files with 59 additions and 18 deletions
36
pkgs/development/python-modules/mpegdash/default.nix
Normal file
36
pkgs/development/python-modules/mpegdash/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
pytestCheckHook,
|
||||||
|
setuptools,
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "mpegdash";
|
||||||
|
version = "0.4.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sangwonl";
|
||||||
|
repo = "python-mpegdash";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-eKtJ+QzeoMog5X1r1ix9vrmGTi/9KzdJiu80vrTX14I=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools ];
|
||||||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# requires network access
|
||||||
|
"test_xml2mpd_from_url"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "mpegdash" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "MPEG-DASH MPD(Media Presentation Description) Parser";
|
||||||
|
homepage = "https://github.com/sangwonl/python-mpegdash";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ drawbu ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,42 +1,45 @@
|
||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, buildPythonPackage
|
buildPythonPackage,
|
||||||
, fetchPypi
|
fetchPypi,
|
||||||
, python-dateutil
|
python-dateutil,
|
||||||
, poetry-core
|
poetry-core,
|
||||||
, requests
|
requests,
|
||||||
|
isodate,
|
||||||
|
ratelimit,
|
||||||
|
typing-extensions,
|
||||||
|
mpegdash,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tidalapi";
|
pname = "tidalapi";
|
||||||
version = "0.7.6";
|
version = "0.7.6";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-X6U34T1sM4P+JFpOfcI7CmULcGZ4SCXwP2fFHKi1cWE=";
|
hash = "sha256-X6U34T1sM4P+JFpOfcI7CmULcGZ4SCXwP2fFHKi1cWE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
python-dateutil
|
python-dateutil
|
||||||
|
mpegdash
|
||||||
|
isodate
|
||||||
|
ratelimit
|
||||||
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # tests require internet access
|
doCheck = false; # tests require internet access
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "tidalapi" ];
|
||||||
"tidalapi"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
changelog = "https://github.com/tamland/python-tidal/releases/tag/v${version}";
|
changelog = "https://github.com/tamland/python-tidal/releases/tag/v${version}";
|
||||||
description = "Unofficial Python API for TIDAL music streaming service";
|
description = "Unofficial Python API for TIDAL music streaming service";
|
||||||
homepage = "https://github.com/tamland/python-tidal";
|
homepage = "https://github.com/tamland/python-tidal";
|
||||||
license = licenses.gpl3;
|
license = lib.licenses.gpl3;
|
||||||
maintainers = [ ];
|
maintainers = with lib.maintainers; [ drawbu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7693,6 +7693,8 @@ self: super: with self; {
|
||||||
|
|
||||||
mpd2 = callPackage ../development/python-modules/mpd2 { };
|
mpd2 = callPackage ../development/python-modules/mpd2 { };
|
||||||
|
|
||||||
|
mpegdash = callPackage ../development/python-modules/mpegdash { };
|
||||||
|
|
||||||
mpi4py = callPackage ../development/python-modules/mpi4py { };
|
mpi4py = callPackage ../development/python-modules/mpi4py { };
|
||||||
|
|
||||||
mpldatacursor = callPackage ../development/python-modules/mpldatacursor { };
|
mpldatacursor = callPackage ../development/python-modules/mpldatacursor { };
|
||||||
|
|
Loading…
Reference in a new issue