Skip to content

pythonPackages.ltc_scrypt: init at 1.0 #25542

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

Closed
wants to merge 1 commit into from

Conversation

asymmetric
Copy link
Contributor

library needed by the electrum-ltc lightweight litecoin wallet

Motivation for this change
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
    • Linux
  • 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.

Sorry, something went wrong.

@mention-bot
Copy link

@asymmetric, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer.

Copy link
Member

@FRidh FRidh left a comment

Choose a reason for hiding this comment

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

Are there tests? And if so, are they working?

@@ -13940,6 +13940,23 @@ in {
};
});

ltc_scrypt = buildPythonPackage rec {
Copy link
Member

Choose a reason for hiding this comment

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

this file needs to be moved, see the header of this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should it be moved because of the following?

Python packages that do not need to be available for each interpreter version do not belong in this packages set.

If so, where should it be moved to?

Copy link
Contributor Author

@asymmetric asymmetric May 5, 2017

Choose a reason for hiding this comment

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

Or is it because

Expressions for Python libraries are supposed to be in pkgs/development/python-modules/<name>/default.nix.

If that's the standard, I see almost no other library in this file following it.

Copy link
Member

Choose a reason for hiding this comment

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

That's because its relatively new and we're in the process of actually getting all the expressions there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A note in that comment mentioning this could be useful. WDYT?

meta = {
description = "Bindings for scrypt proof of work used by Litecoin";
homepage = https://pypi.python.org/pypi/ltc_scrypt;
maintainers = with maintainers; [ asymmetric ];
Copy link
Member

Choose a reason for hiding this comment

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

license is missing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there's none i could find

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@asymmetric asymmetric May 5, 2017

Choose a reason for hiding this comment

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

Actually, looking at the source, it's taken from cperciva's tarsnap, and the license is similar to this one.

Since it's not a standard license, what should I do?

Copy link
Member

Choose a reason for hiding this comment

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

that's a BSD2 license

@FRidh FRidh added 6.topic: python 8.has: package (new) This PR adds a new package labels May 5, 2017
@asymmetric asymmetric changed the title ltc_scrypt: init at 1.0 pythonPackages.ltc_scrypt: init at 1.0 May 5, 2017
@asymmetric
Copy link
Contributor Author

No, there are no tests in the source.

@FRidh
Copy link
Member

FRidh commented May 5, 2017

Looking at the description and the package contents this is an older proof of work and not more than a dump of it. Is there a particular reason you want this in Nixpkgs?

@asymmetric
Copy link
Contributor Author

asymmetric commented May 5, 2017

Yes, it's in the PR description and in the commit message: it's a dependency of electrum-ltc, a Litecoin client.

@asymmetric
Copy link
Contributor Author

BTW, I'm happy to bundle this library in the same PR as the application that uses it, if you think it makes more sense.

@FRidh
Copy link
Member

FRidh commented May 5, 2017

Yes, please.

library needed by the electrum-ltc lightweight litecoin wallet
@asymmetric
Copy link
Contributor Author

Closed in favor of #25544.

@asymmetric asymmetric closed this May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants