Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python310Packages.m3u8: 0.9.0 -> 3.4.0

+23 -16
+23 -16
pkgs/development/python-modules/m3u8/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, fetchpatch, requests, iso8601, bottle, pytestCheckHook }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , iso8601 5 + , bottle 6 + , pytestCheckHook 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "m3u8"; 5 - version = "0.9.0"; 11 + version = "3.4.0"; 6 12 7 13 src = fetchFromGitHub { 8 14 owner = "globocom"; 9 15 repo = pname; 10 16 rev = version; 11 - hash = "sha256-EfHhmV2otEgEy2OVohS+DF7dk97GFdWZ4cFCERZBmlA="; 17 + hash = "sha256-jfCmvAb7bF6nYFNUPXVG61x0RiO4vcyR+x7WzgPRLxI="; 12 18 }; 13 19 14 - patches = [ 15 - # Fix hardcoded /tmp dir (fix build on Hydra) 16 - (fetchpatch { 17 - url = "https://github.com/globocom/m3u8/commit/cf7ae5fda4681efcea796cd7c51c02f152c36009.patch"; 18 - hash = "sha256-SEETpIJQddid8D//6DVrSGs/BqDeMOzufE0bBrm+/xY="; 19 - }) 20 + propagatedBuildInputs = [ 21 + iso8601 20 22 ]; 21 23 22 - propagatedBuildInputs = [ requests iso8601 ]; 24 + nativeCheckInputs = [ 25 + bottle 26 + pytestCheckHook 27 + ]; 23 28 24 - nativeCheckInputs = [ bottle pytestCheckHook ]; 29 + disabledTests = [ 30 + # Tests require network access 31 + "test_load_should_create_object_from_uri" 32 + "test_load_should_create_object_from_uri_with_relative_segments" 33 + "test_load_should_remember_redirect" 34 + ]; 25 35 26 - pytestFlagsArray = [ 27 - "tests/test_parser.py" 28 - "tests/test_model.py" 29 - "tests/test_variant_m3u8.py" 36 + pythonImportsCheck = [ 37 + "m3u8" 30 38 ]; 31 39 32 40 meta = with lib; { ··· 36 44 maintainers = with maintainers; [ Scriptkiddi ]; 37 45 }; 38 46 } 39 -