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

python-modules: fix httpbin by adding all the deps #33615

Closed
wants to merge 4 commits into from

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Jan 8, 2018

Motivation for this change

Fixes #33604 .

Fixes httpbin build failure.
Introduces number of new packages that are required by httpbin as of 0.6.2.

httpbin should not have been updated without testing that it builds....

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

{ stdenv, fetchPypi, buildPythonPackage, colorama }:

buildPythonPackage rec {
name = "${pname}-${version}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop name here and in other expressions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's automatic? Excellent!

Copy link
Contributor

@orivej orivej Jan 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping!

EDIT: Ignore this, I didn't notice that I was looking at an outdated diff (?).

@dtzWill
Copy link
Member Author

dtzWill commented Jan 8, 2018

@FRidh: done, pushed!

@sjau
Copy link

sjau commented Jan 13, 2018

any news on this?

@dtzWill
Copy link
Member Author

dtzWill commented Jan 18, 2018

Rebased onto master and re-tested, ping! (cc @FRidh)

Since the package (and anything requiring it) currently fails to build, this seems moderately important. And with a low bar to clear in terms of functionality :P.

{ stdenv, fetchPypi, buildPythonPackage, colorama }:

buildPythonPackage rec {
name = "${pname}-${version}";
Copy link
Contributor

@orivej orivej Jan 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping!

EDIT: Ignore this, I didn't notice that I was looking at an outdated diff (?).

flask-compress = callPackage ../development/python-modules/flask-compress { };

flask-cors = callPackage ../development/python-modules/flask-cors { };

flask_elastic = callPackage ../development/python-modules/flask-elastic { };

flask_limiter = callPackage ../development/python-modules/flask-limiter { };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the canonical PyPI names of the new packages are Flask-Common and Flask-Limiter, and the manual says not to convert hyphens to underscores (https://nixos.org/nixpkgs/manual/#sec-package-naming), could you use hyphenated names?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, in python-packages.nix we do not follow those guidelines, but instead stick to the canonical PyPI names, or the normalized names (https://www.python.org/dev/peps/pep-0503/#normalized-names)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least, that's what I am pushing for.

doCheck = false;

meta = with stdenv.lib; {
description = "Official timezone database for Python";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the description on its website, but I do not see anything official about it. Could you change it to "Timezone database for Python"?

It is quite unfortunate that it ships an outdated version of tzdata rather than using system tzdata, but this is out of scope of this PR.

@FRidh FRidh mentioned this pull request Jan 20, 2018
8 tasks
@FRidh
Copy link
Member

FRidh commented Jan 20, 2018

I've included the changes in #34077.

@FRidh FRidh closed this Jan 20, 2018
@dtzWill dtzWill deleted the fix/httpbin branch January 21, 2018 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants