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
pythonPackages.pynacl: 0.3.0 -> 1.2.1 #34826
Conversation
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 squash the commits and please and don't call it init
. It is an update.
Also, would you want to become the maintainer yourself?
buildPythonPackage rec { | ||
pname = "pynacl"; | ||
version = "1.2.1"; | ||
name = "${pname}-${version}"; |
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.
no name
sha256 = "0z9i1z4hjzmp23igyhvg131gikbrr947506lwfb3fayf0agwfv8f"; | ||
}; | ||
|
||
buildInputs = [ pytest coverage hypothesis ]; |
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.
checkInputs
version = "1.2.1"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchFromGitHub { |
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.
Why not fetchPypi
?
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.
Mostly personal preference, honestly. I've seen many expressions in python-modules use fetchFromGitHub so I went with that.
Recent pynacl releases were about a day early on GitHub compared to PyPi.
src = fetchFromGitHub { | ||
owner = "pyca"; | ||
repo = pname; | ||
rev = "${version}"; |
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.
rev = version;
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 don't forget to squash the commits
''; | ||
|
||
meta = with stdenv.lib; { | ||
aintainers = with maintainers; [ va1entin ]; |
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.
maintainers
@GrahamcOfBorg build python3Packages.pynacl python2Packages.pynacl |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
description = "Python binding to the Networking and Cryptography (NaCl) library"; | ||
homepage = https://github.com/pyca/pynacl/; | ||
license = licenses.asl20; | ||
platforms = platforms.linux; |
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.
Does the new one actually not build on MacOS?
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.
Actually, most python packages shouldn't specify platforms
at all. It is set automatically.
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.
Sorry I forgot that, removed platforms now.
Success on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
The deadline seems to be a known problem: pyca/pynacl#370 |
@@ -11,6 +11,12 @@ buildPythonPackage rec { | |||
sha256 = "0z9i1z4hjzmp23igyhvg131gikbrr947506lwfb3fayf0agwfv8f"; | |||
}; | |||
|
|||
#remove deadline from tests | |||
preCheck = '' |
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.
prePatch
and please link to the upstream issue in a comment
Please name the commit according to https://nixos.org/nixpkgs/manual/#chap-submitting-changes, i.e. exactly as this PR is named. |
Motivation for this change
python-packages.nix contains version 0.3.0 of pynacl, which is very old.
Things done
Created a nix expression for pynacl at version 1.2.1 in it's own file, removed old 0.3.0 version of pynacl from python-packages.nix
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)