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

pythonPackages.{pure-python-adb,adb-shell,androidtv}: init #98452

Merged
merged 4 commits into from Oct 3, 2020

Conversation

@JamieMagee
Copy link
Member

@JamieMagee JamieMagee commented Sep 22, 2020

Motivation for this change

Support androidtv in Home Assistant

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.
Copy link
Member

@mweinelt mweinelt left a comment

Off to a good start, but does not look complete yet.

pkgs/development/python-modules/adb-shell/default.nix Outdated Show resolved Hide resolved
pkgs/servers/home-assistant/component-packages.nix Outdated Show resolved Hide resolved
@JamieMagee JamieMagee force-pushed the adb-shell branch 2 times, most recently from 8a93af6 to 9756320 Sep 23, 2020
@JamieMagee JamieMagee requested a review from mweinelt Sep 23, 2020
@mweinelt
Copy link
Member

@mweinelt mweinelt commented Sep 23, 2020

We're still missing androidtv and pure-python-adb. The rest looks good.

@JamieMagee
Copy link
Member Author

@JamieMagee JamieMagee commented Sep 23, 2020

We're still missing androidtv and pure-python-adb. The rest looks good.

I was planning on opening separate PRs for those. Is that okay?

@mweinelt
Copy link
Member

@mweinelt mweinelt commented Sep 23, 2020

Just include them here please, so we can have one pr including the component package regeneration.

@JamieMagee JamieMagee changed the title pythonPackages.adb-shell: init at 0.2.2 pythonPackages.{pure-python-adb,adb-shell,androidtv}: init Sep 24, 2020
@JamieMagee
Copy link
Member Author

@JamieMagee JamieMagee commented Sep 24, 2020

I've added all the required packages.

I'll make the changes to home-assistant in a followup PR. Home assistant needs a version bump anyway as 0.115.x has been released.

@JamieMagee JamieMagee force-pushed the adb-shell branch 2 times, most recently from 62485a5 to 1b13a04 Sep 24, 2020
Copy link
Member

@mweinelt mweinelt left a comment

The packages look pretty good, please disable adb-shell on py27 and regenerate the component packages for home-assistant.

@mweinelt
Copy link
Member

@mweinelt mweinelt commented Oct 1, 2020

I'll make the changes to home-assistant in a followup PR. Home assistant needs a version bump anyway as 0.115.x has been released.

I've taken care of the home-assistant update in #99217. You can regenerate the component-packages now and I'll rebase on top of that, or we do it the other way around. I don't mind.

@JamieMagee
Copy link
Member Author

@JamieMagee JamieMagee commented Oct 2, 2020

I think I'll just wait until your PR goes in, and then I'll rebase on top of that. I'm in no rush to get this merged.

@mweinelt mweinelt self-assigned this Oct 2, 2020
@JamieMagee JamieMagee requested a review from mweinelt Oct 3, 2020
@mweinelt
Copy link
Member

@mweinelt mweinelt commented Oct 3, 2020

Result of nixpkgs-review pr 98452 1

6 packages built:
  • python37Packages.adb-shell
  • python37Packages.androidtv
  • python37Packages.pure-python-adb
  • python38Packages.adb-shell
  • python38Packages.androidtv
  • python38Packages.pure-python-adb

# Disable tests as they require docker, docker-compose and a dedicated
# android emulator
doCheck = false;

Copy link
Member

@mweinelt mweinelt Oct 3, 2020

Whoops, we're missing a pythonImportsCheck here.

Last gotcha.

Copy link
Member

@mweinelt mweinelt left a comment

Last nit.

@mweinelt mweinelt merged commit 5bfedbf into NixOS:master Oct 3, 2020
2 of 3 checks passed
2 of 3 checks passed
@github-actions[bot]
tests tests
Details
@github-actions[bot]
action
Details
@github-actions[bot]
Wait for ofborg This failed status will be cleared when ofborg finishes eval.
Details
@JamieMagee JamieMagee deleted the adb-shell branch Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants