summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-09-02 00:15:21 +0000
committerGitHub <noreply@github.com>2022-09-02 00:15:21 +0000
commit77becd89dccf27dbc7f5e594bbf64fd3c664bf92 (patch)
tree4ad4ad5238e3eac8b3c5d3ad89fe0c916e578353
parentMerge branch 'release-22.05' into staging-next-22.05 (diff)
parentMerge pull request #189279 from NixOS/backport-189262-to-release-22.05 (diff)
downloadnixpkgs-77becd89dccf27dbc7f5e594bbf64fd3c664bf92.tar.gz
Merge release-22.05 into staging-next-22.05
-rw-r--r--pkgs/applications/blockchains/trezor-suite/default.nix6
-rw-r--r--pkgs/development/python-modules/dateparser/default.nix7
-rw-r--r--pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix52
-rw-r--r--pkgs/tools/misc/yt-dlp/default.nix4
-rw-r--r--pkgs/top-level/python-packages.nix2
5 files changed, 66 insertions, 5 deletions
diff --git a/pkgs/applications/blockchains/trezor-suite/default.nix b/pkgs/applications/blockchains/trezor-suite/default.nix
index 9c38a3f78615..b110bd4e33be 100644
--- a/pkgs/applications/blockchains/trezor-suite/default.nix
+++ b/pkgs/applications/blockchains/trezor-suite/default.nix
@@ -8,7 +8,7 @@
let
pname = "trezor-suite";
- version = "22.3.2";
+ version = "22.8.2";
name = "${pname}-${version}";
suffix = {
@@ -19,8 +19,8 @@ let
src = fetchurl {
url = "https://github.com/trezor/${pname}/releases/download/v${version}/Trezor-Suite-${version}-${suffix}.AppImage";
sha512 = { # curl -Lfs https://github.com/trezor/trezor-suite/releases/latest/download/latest-linux{-arm64,}.yml | grep ^sha512 | sed 's/: /-/'
- aarch64-linux = "sha512-GW8wmfTjuWrXijyPKeDJgF+mas1pfEMgAASmlvCURfFwg+oSL0B/0Z2qm5QRXIHmyd7eg/Zd8nEZL7Fg2Lb9ww==";
- x86_64-linux = "sha512-/XQ/sI0TP++3KHlkBXLHe/SVGKcmyjT7vPkV0NCK4rlL70VE+wKLKQK6XKp4V81B5w2+3a/uPOWtmcVr5iVkSA==";
+ aarch64-linux = "sha512-tzGkEDVXOJaTfRPO4UUfDpqaddjeJvVHpf81A9hhpUTRIgbAO4fcOrTgJcgWCBotDo8nHCWjw+n5BG5PEfQ19Q==";
+ x86_64-linux = "sha512-qUM3HGYXbVbLRYXetLGbShPU5ochuptCUNn0G5RD3tQeipVZsgRkQCSfZ1Zb3HgoPUOna3u8Mp7Ipu1n8xi3vg==";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
};
diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix
index 7f92077c0c73..6d113b178c5a 100644
--- a/pkgs/development/python-modules/dateparser/default.nix
+++ b/pkgs/development/python-modules/dateparser/default.nix
@@ -29,6 +29,13 @@ buildPythonPackage rec {
sha256 = "sha256-bDup3q93Zq+pvwsy/lQy2byOMjG6C/+7813hWQMbZRU=";
};
+ postPatch = ''
+ # https://github.com/scrapinghub/dateparser/issues/1053
+ substituteInPlace tests/test_search.py --replace \
+ "('June 2020', datetime.datetime(2020, 6, datetime.datetime.utcnow().day, 0, 0))," \
+ "('June 2020', datetime.datetime(2020, 6, min(30, datetime.datetime.utcnow().day), 0, 0)),"
+ '';
+
propagatedBuildInputs = [
# install_requires
python-dateutil pytz regex tzlocal
diff --git a/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix b/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix
new file mode 100644
index 000000000000..c34c8ba84b15
--- /dev/null
+++ b/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix
@@ -0,0 +1,52 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytestCheckHook
+, pythonOlder
+, build
+, hatchling
+}:
+
+buildPythonPackage rec {
+ pname = "hatch-fancy-pypi-readme";
+ version = "22.3.0";
+ format = "pyproject";
+
+ disabled = pythonOlder "3.7";
+
+ src = fetchPypi {
+ pname = "hatch_fancy_pypi_readme";
+ inherit version;
+ hash = "sha256-fUZR+PB4JZMckoc8tRE3IUqTi623p1m4XB2Vv3T4bvo=";
+ };
+
+ nativeBuildInputs = [
+ hatchling
+ ];
+
+ propagatedBuildInputs = [
+ hatchling
+ ];
+
+ checkInputs = [
+ build
+ pytestCheckHook
+ ];
+
+ # Requires network connection
+ disabledTests = [
+ "test_build" # Requires internet
+ "test_invalid_config"
+ ];
+
+ pythonImportsCheck = [
+ "hatch_fancy_pypi_readme"
+ ];
+
+ meta = with lib; {
+ description = "Fancy PyPI READMEs with Hatch";
+ homepage = "https://github.com/hynek/hatch-fancy-pypi-readme";
+ license = licenses.mit;
+ maintainers = with maintainers; [ ];
+ };
+}
diff --git a/pkgs/tools/misc/yt-dlp/default.nix b/pkgs/tools/misc/yt-dlp/default.nix
index 681888539ca3..8c6c0906b5df 100644
--- a/pkgs/tools/misc/yt-dlp/default.nix
+++ b/pkgs/tools/misc/yt-dlp/default.nix
@@ -20,11 +20,11 @@ buildPythonPackage rec {
# The websites yt-dlp deals with are a very moving target. That means that
# downloads break constantly. Because of that, updates should always be backported
# to the latest stable release.
- version = "2022.8.19";
+ version = "2022.9.1";
src = fetchPypi {
inherit pname version;
- sha256 = "sha256-zCkKyKH+xiaEF2X+0S96Hr3+AXka5cXzeU7fzjXYGEM=";
+ sha256 = "sha256-vHTuJVeQBD5FgZeq8lxsEE/vyfzaRFj2UmGUR6tK4Nc=";
};
propagatedBuildInputs = [ brotli certifi mutagen pycryptodomex websockets ];
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index fa9d6db1564f..de0a92c240d4 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -3833,6 +3833,8 @@ in {
hatchling = callPackage ../development/python-modules/hatchling { };
+ hatch-fancy-pypi-readme = callPackage ../development/python-modules/hatch-fancy-pypi-readme { };
+
hatch-vcs = callPackage ../development/python-modules/hatch-vcs { };
haversine = callPackage ../development/python-modules/haversine { };