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

python36Packages.black: fix broken dependency #106622

Merged
merged 1 commit into from Dec 11, 2020

Conversation

kini
Copy link
Member

@kini kini commented Dec 11, 2020

In PR #96456, black was upgraded from 19.10b0 to 20.8b1. On Python 3.6 only,
this new version of black depends on the dataclasses package, but that wasn't
specified in the buildInputs, so this commit fixes that.

Motivation for this change

python36Packages.black doesn't build.

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.

@kini
Copy link
Member Author

kini commented Dec 11, 2020

Result of nixpkgs-review pr 106622 1

In PR NixOS#96456, black was upgraded from 19.10b0 to 20.8b1.  This new version of
black depends on the dataclasses module, but that was only introduced into the
standard library in Python 3.7; earlier versions of Python require the backport
package of the same name.  This commit addresses the missing dependency.
Copy link
Contributor

@drewrisinger drewrisinger left a comment

Choose a reason for hiding this comment

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

  • Diff LGTM
  • Commits LGTM
  • Builds cleanly locally:
nix-build -A python36Packages.black
...
========== 143 passed, 4 deselected, 3 xfailed, 13 warnings in 37.63s ==========
Finished executing pytestCheckPhase
pytestcachePhase
/nix/store/mvdcj0vrj1xp89ndqyjyzd05zc5brd0g-python3.6-black-20.8b1

[nix-shell:~/.cache/nixpkgs-review/pr-106622/nixpkgs]$

@FRidh FRidh merged commit fe5f82f into NixOS:master Dec 11, 2020
@kini kini deleted the kkini/python36-black-fix branch December 14, 2020 19:33
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

3 participants