-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
init: Pebble sdk at 4.5 #35083
init: Pebble sdk at 4.5 #35083
Conversation
Caught by travis-ci; nicely done!
- peewee - pypng - progressbar2 - pyqrcode - wsgiref
- Don't require exact versions of python packages - Use existing python packages where appropriate - Use pythonEnv to set up the python dependencies - Other minor cleanups
Thanks for the PR comment, c0bw3b.
pkgs/top-level/python-packages.nix
Outdated
@@ -5897,6 +5897,23 @@ in { | |||
}; | |||
}; | |||
|
|||
peewee = 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.
Please put this in pkgs/development/python-modules
and use callPackage
.
The same is true for the other 3 Python modules.
pkgs/top-level/python-packages.nix
Outdated
@@ -5897,6 +5897,23 @@ in { | |||
}; | |||
}; | |||
|
|||
peewee = buildPythonPackage rec { | |||
name = "peewee-2.8.8"; |
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.
No name
. Specify pname
and version
instead.
pkgs/top-level/python-packages.nix
Outdated
@@ -6101,6 +6118,20 @@ in { | |||
|
|||
pyphen = callPackage ../development/python-modules/pyphen {}; | |||
|
|||
pypng = buildPythonPackage rec { | |||
name = "pypng-0.0.18"; |
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.
No name
. Specify pname
and version
instead.
pkgs/top-level/python-packages.nix
Outdated
@@ -6101,6 +6118,20 @@ in { | |||
|
|||
pyphen = callPackage ../development/python-modules/pyphen {}; | |||
|
|||
pypng = buildPythonPackage rec { | |||
name = "pypng-0.0.18"; | |||
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
pkgs/top-level/python-packages.nix
Outdated
@@ -5897,6 +5897,23 @@ in { | |||
}; | |||
}; | |||
|
|||
peewee = buildPythonPackage rec { | |||
name = "peewee-2.8.8"; | |||
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
wsgiref | ||
]; | ||
|
||
patchPhase = '' |
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.
prePatch
name = "${pname}-${version}"; | ||
pname = "libpebble2"; | ||
version = "0.0.26"; | ||
src = python27Packages.fetchPypi { |
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.
If this is even on PyPI, why didn't you put it in python-packages.nix
?
sha256 = "16n69xxma7k8mhl8birdwa0fsqvf902g08s80mjb477s4dcxrvaz"; | ||
}; | ||
|
||
# Tries and fails to pull in pytest-mock |
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.
checkInputs = [ pytest-mock ]
homepage = https://developer.pebble.com/sdk; | ||
description = "SDK to build applications for the Pebble smartwatch"; | ||
|
||
license = https://developer.pebble.com/legal/sdk-license/; |
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 should probably be licenses.unfree
, shouldn't it?
You can put the URL in a comment.
pkgs/top-level/python-packages.nix
Outdated
|
||
meta = { | ||
description = "A QR code generator written purely in Python with SVG, EPS, PNG and terminal output"; | ||
home = "https://pypi.python.org/pypi/PyQRCode/"; |
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.
homepage
, no quotes. And the homepage should be https://github.com/mnooner256/pyqrcode.
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.
Please also make all changes requested in #23445.
sigh; I forgot to push my final two changes wrapping up comments from #23445. Those should be good now; I'll look at the rest of your comments in a bit. |
@dotlambda Thanks for all the feedback; I think I've addressed it all, along with a couple other minor cleanups. Two areas I'd appreciate feedback:
|
|
@edanaher Any progress? |
In the process of pulling out and testing pypkjs, I discovered that the emulator isn't working again; I was looking at that, and got distracted. I'll take another shot at fixing it up. |
Closing due to inactivity. If you still want this in, either request for this to be reopened or open a new PR. |
Motivation for this change
While Pebble has been bought by Fitbit and stopped selling new products, the watches are still around and available (and cheap!). So this adds the pebble sdk to develop apps for it.
After the initial PR (#23445) languished and was eventually closed, here's a fresh one. (It's been a good learning experience for me in the Right Way to do several things :) )
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)