1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8buildPythonPackage rec {
9 pname = "mpegdash";
10 version = "0.4.0";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "sangwonl";
15 repo = "python-mpegdash";
16 rev = version;
17 hash = "sha256-eKtJ+QzeoMog5X1r1ix9vrmGTi/9KzdJiu80vrTX14I=";
18 };
19
20 nativeBuildInputs = [ setuptools ];
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 disabledTests = [
24 # requires network access
25 "test_xml2mpd_from_url"
26 ];
27
28 pythonImportsCheck = [ "mpegdash" ];
29
30 meta = {
31 description = "MPEG-DASH MPD(Media Presentation Description) Parser";
32 homepage = "https://github.com/sangwonl/python-mpegdash";
33 license = lib.licenses.mit;
34 maintainers = with lib.maintainers; [ drawbu ];
35 };
36}