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.mail-parser: init at 3.3.1 #40353
Conversation
pname = "mail-parser"; | ||
version = "3.3.1"; | ||
|
||
src = 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.
incorrect indentation
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.
@FRidh Fixed (sorry for that)
|
||
propagatedBuildInputs = [ ipaddress six simplejson ]; | ||
|
||
doCheck = false; |
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.
Why are the tests disabled? Include a comment in the expression explaining why the tests are disabled.
@FRidh Fixed indentation and enabled tests back. |
propagatedBuildInputs = [ ipaddress six simplejson ]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A mail parser for python 2 and 3"; |
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.
wrong indentation
version = "3.3.1"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; |
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.
wrong indentation
Instead of removing |
@dotlambda Addressed your comments ^^ . |
@GrahamcOfBorg build python2.pkgs.mail-parser python3.pkgs.mail-parser |
Failure on x86_64-linux (full log) Attempted: python2.pkgs.mail-parser, python3.pkgs.mail-parser Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: python2.pkgs.mail-parser, python3.pkgs.mail-parser Partial log (click to expand)
|
You have to specify an appropriate
This probably means you have to set |
@dotlambda Fixed the decoding issue. When building the package on python 3.6 it complaion about the unavailability of the package "ipaddress". it turns out that the package is enabled for python 3.2 or less. |
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.
When building the package on python 3.6 it complaion about the unavailability of the package "ipaddress". it turns out that the package is enabled for python 3.2 or less.
That's because new versions of Python have it as part of stdlib
.
I removed that and build if for python36 and 35 successfully.
No, that should not be done, because we should avoid shadowing standard library modules. The package mail-parser
should only depend on ipaddress
for older versions of Python.
@@ -0,0 +1,26 @@ | |||
{ stdenv, pkgs, buildPythonPackage, glibcLocales, fetchPypi, ipaddress, six, simplejson }: |
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 pkgs
pkgs/top-level/python-packages.nix
Outdated
@@ -6699,7 +6701,7 @@ in { | |||
}; | |||
}; | |||
|
|||
ipaddress = if (pythonAtLeast "3.3") then null else buildPythonPackage rec { | |||
ipaddress = 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.
this needs to be undone
@dotlambda Can you please take a look ^_^ |
1efac83
to
ce921cd
Compare
@Assassinkin Please have a look at my changes. @GrahamcOfBorg build python2.pkgs.mail-parser python3.pkgs.mail-parser |
Success on x86_64-linux (full log) Attempted: python2.pkgs.mail-parser, python3.pkgs.mail-parser Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.mail-parser, python3.pkgs.mail-parser Partial log (click to expand)
|
@dotlambda Looks way better. Thanks for the help. |
Motivation for this change
mail-parser is not only a wrapper for email Python Standard Library. It gives an easy way to pass from raw mail to Python object.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)