-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
safety: init at 1.8.5 #78258
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
safety: init at 1.8.5 #78258
Conversation
@GrahamcOfBorg build python3Packages.dparse safety |
@GrahamcOfBorg eval |
pname = "dparse"; | ||
version = "0.4.1"; | ||
|
||
buildInputs = [ six pyyaml packaging ]; |
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.
buildInputs = [ six pyyaml packaging ]; | |
propagatedBuildInputs = [ six pyyaml packaging ]; |
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "06bvn7m3xlfvw0l6ydm3b503ycsvj120sq7kkcayaa86j3xgv980"; | ||
}; |
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.
usually src is order immediately after version. E.g:
pname = "dparse";
version = "0.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "06bvn7m3xlfvw0l6ydm3b503ycsvj120sq7kkcayaa86j3xgv980";
};
...
@@ -0,0 +1,29 @@ | |||
{ stdenv, python3Packages }: |
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.
generally the interpreter is what you want to import, in case you need to freeze some dependency version, this is done at the interpreter level.
{ stdenv, python3Packages }: | |
{ stdenv, python3 }: |
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.
the package set can be accessed with python3.pkgs
# Inpure integration tests | ||
doCheck = false; |
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.
you can ignore specific tests with pytest. It's still good to include unit tests:
checkPhase = ''
pytest --ignore=some_file.py -k 'not bad_test'
Thank you for the feedback. I do not longer needs this to be included. |
Motivation for this change
safety: init at 1.8.5
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)