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

Add tootstream #65187

Closed
wants to merge 2 commits into from
Closed

Conversation

matthiasbeyer
Copy link
Contributor

Motivation for this change

I want to use this.

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 nix-review --run "nix-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@matthiasbeyer
Copy link
Contributor Author

This took me way to long, but I guess your annotations should be fixed now.

@Lassulus
Copy link
Member

sadly this has a merge conflict

@matthiasbeyer
Copy link
Contributor Author

matthiasbeyer commented May 27, 2020

So finally someone is interested in my one-year-old PR. That wouldn't have happened with a proper tool to handle these things (edit: And a proper workflow, that is), like sourcehut for example.

Enough ranting, here goes the updated PR.

sha256 = "1229wbckanp08bbqajsn31ggvay271d883nca28wpvsaqdsv8ci5";
};

propagatedBuildInputs = [ decorator six requests pytz dateutil python_magic ];
Copy link
Member

Choose a reason for hiding this comment

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

I guess setuptools is missing here, because I'm getting this error:

[nix-shell:~/.cache/nixpkgs-review/pr-65187]$ tootstream 
Traceback (most recent call last):
  File "/nix/store/k2b74bln8j3hkmbqnaws3wdkv6dw4m3m-tootstream-0.3.7/bin/.tootstream-wrapped", line 6, in <module>
    from tootstream.toot import main
  File "/nix/store/k2b74bln8j3hkmbqnaws3wdkv6dw4m3m-tootstream-0.3.7/lib/python3.7/site-packages/tootstream/toot.py", line 22, in <module>
    import pkg_resources  # part of setuptools
ModuleNotFoundError: No module named 'pkg_resources'

pkgs/development/python-modules/mastodonpy/default.nix Outdated Show resolved Hide resolved
Comment on lines 30 to 44
meta = {
homepage = "https://github.com/halcy/Mastodon.py";
description = "Python wrapper for the Mastodon API";
license = lib.licenses.mit;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

please add yourself as a maintainer

pkgs/applications/misc/tootstream/default.nix Outdated Show resolved Hide resolved
pkgs/applications/misc/tootstream/default.nix Outdated Show resolved Hide resolved
pkgs/applications/misc/tootstream/default.nix Show resolved Hide resolved
Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

undefined variable 'maintainers' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/packet-spot-eval-4/pkgs/development/python-modules/mastodonpy/default.nix:43:21

pkgs/development/python-modules/mastodonpy/default.nix Outdated Show resolved Hide resolved
pkgs/development/python-modules/mastodonpy/default.nix Outdated Show resolved Hide resolved
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@matthiasbeyer
Copy link
Contributor Author

I hate this "Apply suggestion" feature of github. Who invents such crap?

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

6 participants