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
python3Packages.py-air-control: init at 2.1.0 #105078
Conversation
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 disable it on python27 and disable the tests because the package has none.
running egg_info
writing py_air_control.egg-info/PKG-INFO
writing dependency_links to py_air_control.egg-info/dependency_links.txt
writing entry points to py_air_control.egg-info/entry_points.txt
writing requirements to py_air_control.egg-info/requires.txt
writing top-level names to py_air_control.egg-info/top_level.txt
reading manifest file 'py_air_control.egg-info/SOURCES.txt'
writing manifest file 'py_air_control.egg-info/SOURCES.txt'
running build_ext
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Finished executing setuptoolsCheckPhase
c7536c1
to
8660cd6
Compare
@SuperSandro2000: disabled the tests and disabled on python27. I also took the liberty and did the same for the |
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.
A few things to ask you...
@@ -0,0 +1,23 @@ | |||
{ buildPythonPackage, coapthon3, fetchPypi, lib, pycryptodomex }: |
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.
Is this useful as a Python module, or is it an application (i.e. is it really just for the "airctrl" CLI)?
If the former, this is great :)
If the latter, consider putting this elsewhere in the tree and then using "python3Packages.callPackage" from "all-packages.nix" instead.
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.
It's the former.
To give more context: I am using py-air-control
as a library in another Python module. Here's an example of how it's used.
The final goal is to continuously measure air quality, publish the measurements to Prometheus, and visualize in Grafana (all in NixOS on a Raspberry Pi). I hope this makes sense.
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.
Sure! Nice :)
(ooh, I really want to start doing air quality measurement...)
8660cd6
to
5af24e7
Compare
5af24e7
to
f9a4b59
Compare
On darwin it gets stuck at
|
Result of 4 packages built:
|
I have seen this happen on x86 before I disabled the two failing tests. I think there's something wrong with the tear-down logic when tests fail. Tests create some servers, which in turn create a bunch of threads. Maybe the failed tests leave behind some lingering non-daemon threads which prevent pytest to shut down properly. In any case, since all these tests fail on darwin and they take more than 10 minutes I will just disable them. I will try to contribute some fast and robust unit tests to both |
f9a4b59
to
eb1e14f
Compare
Btw, I now also verified this builds on aarch64 (NixOS on Raspberry Pi 4). Edit: Also verified it actually works on aarch64 too (got the whole thing up and running with metrics scraped by Prometheus and visualised in Grafana). |
Result of 4 packages built:
|
Yeah, we do not want to waste reviewers and builders time with that.
This won't block the PR but great that you try to improve the project. |
@urbas I think we need to do the same with the other package.
|
Oh smokes, I hoped at least those would pass. I disabled them now. 👍 |
Result of 6 packages built:
|
Result of 6 packages built:
|
Motivation for this change
This Python package was not yet packaged in nixpkgs.
Package size:
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)cc @SuperSandro2000