mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #180910 from DeeUnderscore/update/streamlink-4.2.0
This commit is contained in:
commit
d8bfafb65d
3 changed files with 77 additions and 2 deletions
|
@ -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
|
||||
|
|
68
pkgs/development/python-modules/versioningit/default.nix
Normal file
68
pkgs/development/python-modules/versioningit/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue