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.typeguard: init at 2.3.1 #25040
Conversation
Well looks like I had contributed 44157c6 too but that was eons ago… |
pkgs/top-level/python-packages.nix
Outdated
@@ -23151,6 +23151,26 @@ in { | |||
}; | |||
}; | |||
|
|||
typeguard = buildPythonPackage rec { |
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.
Due the size of this file, we add all new/updated python packages to python-modules and only reference them here.
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.
There are test, but they are probably not available on pypi. If this is the case we usually download from github instead.
They can be run by adding pytest
to buildInputs
and override checkPhase:
checkPhase = "py.test .";
pkgs/top-level/python-packages.nix
Outdated
name = "typeguard-${version}"; | ||
version = "2.1.3"; | ||
|
||
src = pkgs.fetchurl { |
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.
fetchpypi can be used here.
pkgs/top-level/python-packages.nix
Outdated
}; | ||
|
||
propagatedBuildInputs = with self; [ | ||
setuptools_scm |
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.
this is typically only a build-time dependency and not a run-time dependency.
Thanks all for the feedback. How does the latest commit look? |
@@ -23178,7 +23180,6 @@ in { | |||
runsnakerun = buildPythonPackage rec { | |||
name = "runsnakerun-2.0.4"; | |||
|
|||
|
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.
note this unrelated change
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.
yes there was an extra empty line…
looks good to me |
By the way, after running the tests, I see this exception/stack trace but not sure why.
|
Yes, I noticed it as well. It seems like they're not using the weak references correctly. I suppose upstream already knows about this? |
Posted upstream here agronholm/typeguard#8 (comment). Merging this for now. |
Motivation for this change
Add typeguard. First time I contribute a python package so wanted to get another pair of eyes before I get too comfortable with merging these things.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)