-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
pythonPackages.b2sdk: 1.6.0 -> 1.7.0 #122138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
pkgs/development/python-modules/b2sdk/0001-Upgrade-arrow.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| From 2490984b0bf5828971c24a4bd94e5f9f02ed01a9 Mon Sep 17 00:00:00 2001 | ||
| From: Uri Baghin <uri@canva.com> | ||
| Date: Sat, 8 May 2021 16:14:01 +1000 | ||
| Subject: [PATCH] Upgrade arrow. | ||
|
|
||
| --- | ||
| requirements.txt | 2 +- | ||
| 1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
|
||
| diff --git a/requirements.txt b/requirements.txt | ||
| index 39f861c..73a67e5 100644 | ||
| --- a/requirements.txt | ||
| +++ b/requirements.txt | ||
| @@ -1,4 +1,4 @@ | ||
| -arrow>=0.8.0,<1.0.0 | ||
| +arrow>=1.0.0,<2.0.0 | ||
| importlib-metadata>=2.1.1,<3.0.0; python_version <= '3.5' | ||
| importlib-metadata>=3.3.0; python_version > '3.5' and python_version < '3.8' | ||
| logfury>=0.1.2 | ||
| -- | ||
| 2.31.1 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { lib | ||
| , buildPythonPackage | ||
| , fetchPypi | ||
| , docutils | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "rst2ansi"; | ||
| version = "0.1.5"; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| sha256 = "0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"; | ||
| }; | ||
|
|
||
| propagatedBuildInputs = [ docutils ]; | ||
|
|
||
| # no tests | ||
| doCheck = false; | ||
|
|
||
| meta = with lib; { | ||
| homepage = "https://github.com/Snaipe/python-rst-to-ansi"; | ||
| license = licenses.mit; | ||
| description = "A rst converter to ansi-decorated console output"; | ||
| maintainers = [ maintainers.uri-canva ]; | ||
| }; | ||
| } | ||
36 changes: 36 additions & 0 deletions
36
pkgs/development/tools/backblaze-b2/0001-Upgrade-arrow.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| From 3086ce1f5aa0e142191e62e60bb0d4f36742c94e Mon Sep 17 00:00:00 2001 | ||
| From: Uri Baghin <uri@canva.com> | ||
| Date: Sat, 8 May 2021 16:26:47 +1000 | ||
| Subject: [PATCH] Upgrade arrow. | ||
|
|
||
| --- | ||
| b2/arg_parser.py | 2 +- | ||
| requirements.txt | 2 +- | ||
| 2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
|
||
| diff --git a/b2/arg_parser.py b/b2/arg_parser.py | ||
| index cdfa1da..11c9c2c 100644 | ||
| --- a/b2/arg_parser.py | ||
| +++ b/b2/arg_parser.py | ||
| @@ -91,7 +91,7 @@ def parse_millis_from_float_timestamp(s): | ||
| """ | ||
| Parse timestamp, e.g. 1367900664 or 1367900664.152 | ||
| """ | ||
| - return int(arrow.get(float(s)).format('XSSS')) | ||
| + return int(arrow.get(float(s)).float_timestamp * 1000) | ||
|
|
||
|
|
||
| def parse_range(s): | ||
| diff --git a/requirements.txt b/requirements.txt | ||
| index 3cc8006..354125f 100644 | ||
| --- a/requirements.txt | ||
| +++ b/requirements.txt | ||
| @@ -1,4 +1,4 @@ | ||
| -arrow>=0.8.0,<1.0.0 | ||
| +arrow>=1.0.0,<2.0.0 | ||
| b2sdk>=1.7.0,<2.0.0 | ||
| docutils==0.16 | ||
| importlib-metadata>=2.1.1,<3.0.0; python_version <= '3.5' | ||
| -- | ||
| 2.31.1 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add yourself as a maintainer when adding a new package.
https://nixos.org/manual/nixpkgs/stable/#reviewing-contributions-new-packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw a lot of other python packages didn't have maintainers, so I didn't realise this was the same as top level packages.