1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
iso8601,
|
|
bottle,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "m3u8";
|
|
version = "6.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "globocom";
|
|
repo = "m3u8";
|
|
tag = version;
|
|
hash = "sha256-1SOuKKNBg67Yc0a6Iqb1goTE7sraptzpFIB2lvrbMQg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ iso8601 ];
|
|
|
|
nativeCheckInputs = [
|
|
bottle
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require network access
|
|
"test_load_should_create_object_from_uri"
|
|
"test_load_should_create_object_from_uri_with_relative_segments"
|
|
"test_load_should_remember_redirect"
|
|
"test_raise_timeout_exception_if_timeout_happens_when_loading_from_uri"
|
|
];
|
|
|
|
pythonImportsCheck = [ "m3u8" ];
|
|
|
|
meta = {
|
|
description = "Python m3u8 parser";
|
|
homepage = "https://github.com/globocom/m3u8";
|
|
changelog = "https://github.com/globocom/m3u8/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|