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

pythonPackages.block-io: fix incorrect dependency version #56462

Merged
merged 1 commit into from Feb 27, 2019

Conversation

nyanloutre
Copy link
Member

@nyanloutre nyanloutre commented Feb 27, 2019

Motivation for this change

This should also be backported to 19.03 to fix the build

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

version = "3.6.6";
sha256 = "b3cb4af317d9b84f6df50f0cfa6840ba69556af637a83fd971537823e13d601a";
};
}))
Copy link
Member

Choose a reason for hiding this comment

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

We can't do that for Python packages. You should instead patch the source.

Copy link
Member Author

Choose a reason for hiding this comment

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

you mean make it work with the latest version of pycryptodome ?

Copy link
Member

Choose a reason for hiding this comment

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

Exactly. I guess the only thing that's necessary for that is patching setup.py.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tested it with the last pycryptodome version and opened a PR upstream, this PR is updated with the corresponding patch

@@ -9,6 +9,13 @@ buildPythonPackage rec {
sha256 = "4909d58b32ab7f93d3cd83fa4bbe4edef42ab7566f016bdb6a405a0d8b1907c9";
};

patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/BlockIo/block_io-python/pull/18.patch";
Copy link
Member

@dotlambda dotlambda Feb 27, 2019

Choose a reason for hiding this comment

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

Suggested change
url = "https://patch-diff.githubusercontent.com/raw/BlockIo/block_io-python/pull/18.patch";
url = "https://github.com/BlockIo/block_io-python/commit/8ec0a0cd1afcfcb439d6dc306d8497dd9e4a0993.patch";

The content of a PR can change.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, fixed

@dotlambda dotlambda merged commit 64a63e5 into NixOS:master Feb 27, 2019
@nyanloutre nyanloutre deleted the blockio-fix branch February 27, 2019 14:59
@nyanloutre
Copy link
Member Author

@dotlambda could you backport it to 19.03 ?

dotlambda pushed a commit that referenced this pull request Mar 26, 2019
@dotlambda
Copy link
Member

done in 0ef2bff

@nyanloutre
Copy link
Member Author

Thanks !

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

3 participants