Skip to content
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

Closed
wants to merge 2 commits into from
Closed

safety: init at 1.8.5 #78258

wants to merge 2 commits into from

Conversation

mmahut
Copy link
Member

@mmahut mmahut commented Jan 22, 2020

Motivation for this change

safety: init at 1.8.5

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@mmahut
Copy link
Member Author

mmahut commented Jan 22, 2020

@GrahamcOfBorg build python3Packages.dparse safety

@mmahut
Copy link
Member Author

mmahut commented Jan 22, 2020

@GrahamcOfBorg eval

pname = "dparse";
version = "0.4.1";

buildInputs = [ six pyyaml packaging ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
buildInputs = [ six pyyaml packaging ];
propagatedBuildInputs = [ six pyyaml packaging ];

Comment on lines +18 to +21
src = fetchPypi {
inherit pname version;
sha256 = "06bvn7m3xlfvw0l6ydm3b503ycsvj120sq7kkcayaa86j3xgv980";
};
Copy link
Contributor

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 }:
Copy link
Contributor

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.

Suggested change
{ stdenv, python3Packages }:
{ stdenv, python3 }:

Copy link
Contributor

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

Comment on lines +15 to +16
# Inpure integration tests
doCheck = false;
Copy link
Contributor

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'

@mmahut
Copy link
Member Author

mmahut commented Jan 24, 2020

Thank you for the feedback. I do not longer needs this to be included.

@mmahut mmahut closed this Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants