Merge pull request #180910 from DeeUnderscore/update/streamlink-4.2.0

This commit is contained in:
Sandro 2022-10-04 15:26:52 +02:00 committed by GitHub
commit d8bfafb65d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 2 deletions

View file

@ -6,11 +6,12 @@
python3Packages.buildPythonApplication rec {
pname = "streamlink";
version = "3.2.0";
version = "5.0.1";
format = "pyproject";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "sha256-l3DS2DhExTeKc+FBMNy3YKvIVlZsqgpB/FuXoN7V2SY=";
hash = "sha256-PKRioPBhTV6i3ckQgcKuhQFmpBvUQE4o3FLej8qx4mM=";
};
checkInputs = with python3Packages; [
@ -20,6 +21,10 @@ python3Packages.buildPythonApplication rec {
freezegun
];
nativeBuildInputs = with python3Packages; [
versioningit
];
propagatedBuildInputs = (with python3Packages; [
isodate
lxml

View file

@ -0,0 +1,68 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, packaging
, setuptools
, tomli
, pytestCheckHook
, build
, pydantic
, pytest-mock
, git
, mercurial
}:
buildPythonPackage rec {
pname = "versioningit";
version = "2.0.1";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-gJfiYNm99nZYW9gTO/e1//rDeox2KWJVtC2Gy1EqsuM=";
};
postPatch = ''
substituteInPlace tox.ini \
--replace "--cov=versioningit" "" \
--replace "--cov-config=tox.ini" "" \
--replace "--no-cov-on-fail" ""
'';
propagatedBuildInputs = [
packaging
setuptools
tomli
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
checkInputs = [
pytestCheckHook
build
pydantic
pytest-mock
git
mercurial
];
disabledTests = [
# wants to write to the Nix store
"test_editable_mode"
];
pythonImportsCheck = [
"versioningit"
];
meta = with lib; {
description = "setuptools plugin for determining package version from VCS";
homepage = "https://github.com/jwodder/versioningit";
changelog = "https://versioningit.readthedocs.io/en/latest/changelog.html";
license = licenses.mit;
maintainers = with maintainers; [ DeeUnderscore ];
};
}

View file

@ -11635,6 +11635,8 @@ in {
versionfinder = callPackage ../development/python-modules/versionfinder { };
versioningit = callPackage ../development/python-modules/versioningit { };
versiontag = callPackage ../development/python-modules/versiontag { };
versiontools = callPackage ../development/python-modules/versiontools { };