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.pybase64: init at 0.2.1 #34589
Conversation
currently running |
ok, the package |
pkgs/top-level/python-packages.nix
Outdated
@@ -3839,7 +3839,8 @@ in { | |||
}; | |||
}); | |||
|
|||
nose-parameterized = callPackage ../development/python-modules/nose-parameterized {}; | |||
nose-parameterized = builtins.trace "Warning: `nose-parameterized` is deprecated! Use `parameterized` 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.
lib.warn
300d27d
to
f518ad6
Compare
@FRidh done. The |
# Tests require some python3-isms but code works without. | ||
doCheck = isPy3k; | ||
|
||
buildInputs = [ nose glibcLocales ]; |
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
f518ad6
to
cb8343f
Compare
`pythonPackages.parameterized` is the successor of `nose-parameterized` as the authors of the module decided to support more testing frameworks and stopped focusing on `noes` only. `nose-parameterized` is still available in `pypi` with version `0.6.0`, but is officially deprecated. However the renaming happened quite recently so it is possible that there are still folks relying on `nose-parameterized`. Therefore I moved the expression to provide a `pythonPackages.parameterized` derivation and added a package override which builds `nose-parameterized` after yielding a deprecation warning.
`pybase64` is a tiny wrapper for `libbase64` written in python. /cc @ironpinguin
cb8343f
to
14da2e2
Compare
done. |
This causes a Hydra build to fail: https://hydra.nixos.org/build/68773666 |
@dotlambda so, yielding warnings (in this case because of a deprecation by the package author) causes our builds to fail? oO For me it seems weird to me to break a build because of warnings (in this case because of a deprecation warning due to a deprecated package which is something that happens from time to time), but @FRidh might know more about this. However if there's no simple workaround to keep the deprecation warning without breaking the build I'd rather drop the warning for now as I think that patching the |
@FRidh FYI I currently don't know how to fix the |
I think we might be able to fix the flexget package by pinning pytest to a certain version (probably 3.2.3 or 3.2.4). I'll try this and report whether it succeeds. |
👍 I think we could also create a package set using ‘pypi2nix’ as this would solve the dependency version problem |
I think the best solution would be to just disable tests completely. Even when up-/downgrading pytest, I have to disable about half of the tests. |
In this case we’d have to test the resulting binary manually right?
As I mentioned we could try if pypi2nix actually fixes these issues, however I can’t have a look at this before the next weekend %)
… On 8. Feb 2018, at 9:36 AM, Robert Schütz ***@***.***> wrote:
I think the best solution would be to just disable tests completely. Even when up-/downgrading pytest, I have to disable about half of the tests.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I don't think derivations generated by pypi2nix are fit for inclusion in Nixpkgs yet. |
can you elaborate, please?
We use tools like hackage2nix and node2nix in nixpkgs to generate derivations. The thing is: such applicatiojs pin their dependencies explicitly, so we’d either have to patch and test such applications whenever we bump a python library or we work around this issue by generating package sets for bigger applications (which actually happens with several nodejs and ruby applications)
… On 8. Feb 2018, at 9:36 AM, Robert Schütz ***@***.***> wrote:
I think the best solution would be to just disable tests completely. Even when up-/downgrading pytest, I have to disable about half of the tests.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Security and testing. Give it some thought how these are affected by the use of
Which is bad practice. They should not pin on patch level, but unfortunately it is often done.
That's why most of our packages have tests, so we can see this happen, and we typically see it happen! It just requires maintainers of these packages to actively maintain their package. |
ACK, you're right.
Okay then, I already started chasing and fixing some build/test issues of flexget, however I lack the inside knowledge in how Python packaging works in Nix, so I had some broken tests where I didn't know how to fix them. |
Motivation for this change
Adds the
pybase64
package, a simple python-basedlibbase64
wrapper.Please have a look at the commit messages for further reference.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)