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

python37Packages.cmd2: 0.9.6 -> 0.9.7 #54129

Closed
wants to merge 1 commit into from

Conversation

r-ryantm
Copy link
Contributor

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-cmd2/versions.

meta.description for python37Packages.cmd2 is: '"Enhancements for standard library's cmd module"'.

Checks done (click to expand)
Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python37Packages.cmd2
python37Packages.cmd2_9

Instructions to test this update (click to expand)

Either download from Cachix:

nix-store -r /nix/store/yb9rrpxycz2mr77ybgizakbwdb7kkd4f-python3.7-cmd2-0.9.7 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)

Or, build yourself:

nix-build -A python37Packages.cmd2 https://github.com/r-ryantm/nixpkgs/archive/1b9216ea53d6ac9cf0cf2657300af9456899d96d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:

ls -la /nix/store/yb9rrpxycz2mr77ybgizakbwdb7kkd4f-python3.7-cmd2-0.9.7
ls -la /nix/store/yb9rrpxycz2mr77ybgizakbwdb7kkd4f-python3.7-cmd2-0.9.7/bin

cc @teto for testing.

Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-cmd2/versions
@teto
Copy link
Member

teto commented Jan 17, 2019

this doesn't seem enough:

teto@jedha> nix-shell -p python3Packages.cmd2                                                                                                                                                                                                                  

$ python
Python 3.7.2 (default, Dec 24 2018, 03:41:55) 
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
+>>> import cmd2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nix/store/yb9rrpxycz2mr77ybgizakbwdb7kkd4f-python3.7-cmd2-0.9.7/lib/python3.7/site-packages/cmd2/__init__.py", line 13, in <module>
    from .cmd2 import Cmd, Statement, EmptyStatement, categorize
  File "/nix/store/yb9rrpxycz2mr77ybgizakbwdb7kkd4f-python3.7-cmd2-0.9.7/lib/python3.7/site-packages/cmd2/cmd2.py", line 48, in <module>
    from . import plugin
  File "/nix/store/yb9rrpxycz2mr77ybgizakbwdb7kkd4f-python3.7-cmd2-0.9.7/lib/python3.7/site-packages/cmd2/plugin.py", line 4, in <module>
    import attr
ModuleNotFoundError: No module named 'attr'

shall I push an update manually then ?

@teto
Copy link
Member

teto commented Jan 17, 2019

this works:

diff --git a/pkgs/development/python-modules/cmd2/default.nix b/pkgs/development/python-modules/cmd2/default.nix
index 019ab4e6cdd..c37853bfd21 100644
--- a/pkgs/development/python-modules/cmd2/default.nix
+++ b/pkgs/development/python-modules/cmd2/default.nix
@@ -1,16 +1,16 @@
 { stdenv, fetchPypi, buildPythonPackage, pythonOlder, isPy3k
-, pyperclip, six, pyparsing, vim, wcwidth, colorama
+, pyperclip, six, pyparsing, vim, wcwidth, colorama, attrs
 , contextlib2 ? null, typing ? null, setuptools_scm
 , pytest, mock ? null, pytest-mock
 , which, glibcLocales
 }:
 buildPythonPackage rec {
   pname = "cmd2";
-  version = "0.9.6";
+  version = "0.9.7";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "0279p76n6yny6psys9fc6yjdrqiisbpmrl59a2vxy56hi7094kaw";
+    sha256 = "0yckl0ldima7a6215qv3066x7vk074prrqj7hdz5xqrapqhk8jmh";
   };
 
   LC_ALL="en_US.UTF-8";
@@ -31,6 +31,7 @@ buildPythonPackage rec {
   ];
 
   propagatedBuildInputs = [
+    attrs
     colorama
     pyperclip
     six

@dotlambda
Copy link
Member

The bump is included in #54186 and I've added attrs in 71f56c9.

@dotlambda dotlambda closed this Jan 18, 2019
@r-ryantm r-ryantm deleted the auto-update/python3.7-cmd2 branch January 25, 2019 02:08
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.

4 participants