##// END OF EJS Templates
users: added SSH key management for user admin pages
marcink -
r1993:dab53d0e default
parent child Browse files
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -0,0 +1,173 b''
1 # -*- coding: utf-8 -*-
2
3 # Copyright (C) 2010-2017 RhodeCode GmbH
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License, version 3
7 # (only), as published by the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # This program is dual-licensed. If you wish to learn more about the
18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20
21 import pytest
22
23 from rhodecode.model.db import User, UserSshKeys
24
25 from rhodecode.tests import TestController, assert_session_flash
26 from rhodecode.tests.fixture import Fixture
27
28 fixture = Fixture()
29
30
31 def route_path(name, params=None, **kwargs):
32 import urllib
33 from rhodecode.apps._base import ADMIN_PREFIX
34
35 base_url = {
36 'edit_user_ssh_keys':
37 ADMIN_PREFIX + '/users/{user_id}/edit/ssh_keys',
38 'edit_user_ssh_keys_generate_keypair':
39 ADMIN_PREFIX + '/users/{user_id}/edit/ssh_keys/generate',
40 'edit_user_ssh_keys_add':
41 ADMIN_PREFIX + '/users/{user_id}/edit/ssh_keys/new',
42 'edit_user_ssh_keys_delete':
43 ADMIN_PREFIX + '/users/{user_id}/edit/ssh_keys/delete',
44
45 }[name].format(**kwargs)
46
47 if params:
48 base_url = '{}?{}'.format(base_url, urllib.urlencode(params))
49 return base_url
50
51
52 class TestAdminUsersSshKeysView(TestController):
53 INVALID_KEY = """\
54 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDk+77sjDzVeB6vevJsuZds1iNU5
55 LANOa5CU5G/9JYIA6RYsWWMO7mbsR82IUckdqOHmxSykfR1D1TdluyIpQLrwgH5kb
56 n8FkVI8zBMCKakxowvN67B0R7b1BT4PPzW2JlOXei/m9W12ZY484VTow6/B+kf2Q8
57 cP8tmCJmKWZma5Em7OTUhvjyQVNz3v7HfeY5Hq0Ci4ECJ59hepFDabJvtAXg9XrI6
58 jvdphZTc30I4fG8+hBHzpeFxUGvSGNtXPUbwaAY8j/oHYrTpMgkj6pUEFsiKfC5zP
59 qPFR5HyKTCHW0nFUJnZsbyFT5hMiF/hZkJc9A0ZbdSvJwCRQ/g3bmdL
60 your_email@example.com
61 """
62 VALID_KEY = 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDk+77sjDzVeB6vev' \
63 'JsuZds1iNU5LANOa5CU5G/9JYIA6RYsWWMO7mbsR82IUckdqOHmxSy' \
64 'kfR1D1TdluyIpQLrwgH5kbn8FkVI8zBMCKakxowvN67B0R7b1BT4PP' \
65 'zW2JlOXei/m9W12ZY484VTow6/B+kf2Q8cP8tmCJmKWZma5Em7OTUh' \
66 'vjyQVNz3v7HfeY5Hq0Ci4ECJ59hepFDabJvtAXg9XrI6jvdphZTc30' \
67 'I4fG8+hBHzpeFxUGvSGNtXPUbwaAY8j/oHYrTpMgkj6pUEFsiKfC5zPq' \
68 'PFR5HyKTCHW0nFUJnZsbyFT5hMiF/hZkJc9A0ZbdSvJwCRQ/g3bmdL ' \
69 'your_email@example.com'
70
71 def test_ssh_keys_default_user(self):
72 self.log_user()
73 user = User.get_default_user()
74 self.app.get(
75 route_path('edit_user_ssh_keys', user_id=user.user_id),
76 status=302)
77
78 def test_add_ssh_key_error(self, user_util):
79 self.log_user()
80 user = user_util.create_user()
81 user_id = user.user_id
82
83 key_data = self.INVALID_KEY
84
85 desc = 'MY SSH KEY'
86 response = self.app.post(
87 route_path('edit_user_ssh_keys_add', user_id=user_id),
88 {'description': desc, 'key_data': key_data,
89 'csrf_token': self.csrf_token})
90 assert_session_flash(response, 'An error occurred during ssh '
91 'key saving: Unable to decode the key')
92
93 def test_ssh_key_duplicate(self, user_util):
94 self.log_user()
95 user = user_util.create_user()
96 user_id = user.user_id
97
98 key_data = self.VALID_KEY
99
100 desc = 'MY SSH KEY'
101 response = self.app.post(
102 route_path('edit_user_ssh_keys_add', user_id=user_id),
103 {'description': desc, 'key_data': key_data,
104 'csrf_token': self.csrf_token})
105 assert_session_flash(response, 'Ssh Key successfully created')
106 response.follow() # flush session flash
107
108 # add the same key AGAIN
109 desc = 'MY SSH KEY'
110 response = self.app.post(
111 route_path('edit_user_ssh_keys_add', user_id=user_id),
112 {'description': desc, 'key_data': key_data,
113 'csrf_token': self.csrf_token})
114 assert_session_flash(response, 'An error occurred during ssh key '
115 'saving: Such key already exists, '
116 'please use a different one')
117
118 def test_add_ssh_key(self, user_util):
119 self.log_user()
120 user = user_util.create_user()
121 user_id = user.user_id
122
123 key_data = self.VALID_KEY
124
125 desc = 'MY SSH KEY'
126 response = self.app.post(
127 route_path('edit_user_ssh_keys_add', user_id=user_id),
128 {'description': desc, 'key_data': key_data,
129 'csrf_token': self.csrf_token})
130 assert_session_flash(response, 'Ssh Key successfully created')
131
132 response = response.follow()
133 response.mustcontain(desc)
134
135 def test_delete_ssh_key(self, user_util):
136 self.log_user()
137 user = user_util.create_user()
138 user_id = user.user_id
139
140 key_data = self.VALID_KEY
141
142 desc = 'MY SSH KEY'
143 response = self.app.post(
144 route_path('edit_user_ssh_keys_add', user_id=user_id),
145 {'description': desc, 'key_data': key_data,
146 'csrf_token': self.csrf_token})
147 assert_session_flash(response, 'Ssh Key successfully created')
148 response = response.follow() # flush the Session flash
149
150 # now delete our key
151 keys = UserSshKeys.query().filter(UserSshKeys.user_id == user_id).all()
152 assert 1 == len(keys)
153
154 response = self.app.post(
155 route_path('edit_user_ssh_keys_delete', user_id=user_id),
156 {'del_ssh_key': keys[0].ssh_key_id,
157 'csrf_token': self.csrf_token})
158
159 assert_session_flash(response, 'Ssh key successfully deleted')
160 keys = UserSshKeys.query().filter(UserSshKeys.user_id == user_id).all()
161 assert 0 == len(keys)
162
163 def test_generate_keypair(self, user_util):
164 self.log_user()
165 user = user_util.create_user()
166 user_id = user.user_id
167
168 response = self.app.get(
169 route_path('edit_user_ssh_keys_generate_keypair', user_id=user_id))
170
171 response.mustcontain('Private key')
172 response.mustcontain('Public key')
173 response.mustcontain('-----BEGIN RSA PRIVATE KEY-----')
1 NO CONTENT: new file 100644
The requested commit or file is too big and content was truncated. Show full diff
@@ -0,0 +1,29 b''
1 import logging
2
3 from sqlalchemy import *
4 from rhodecode.model import meta
5 from rhodecode.lib.dbmigrate.versions import _reset_base, notify
6
7 log = logging.getLogger(__name__)
8
9
10 def upgrade(migrate_engine):
11 """
12 Upgrade operations go here.
13 Don't create your own engine; bind migrate_engine to your metadata
14 """
15 _reset_base(migrate_engine)
16 from rhodecode.lib.dbmigrate.schema import db_4_9_0_0 as db
17
18 db.UserSshKeys.__table__.create()
19
20 fixups(db, meta.Session)
21
22
23 def downgrade(migrate_engine):
24 meta = MetaData()
25 meta.bind = migrate_engine
26
27
28 def fixups(models, _SESSION):
29 pass
@@ -0,0 +1,123 b''
1 # -*- coding: utf-8 -*-
2
3 # Copyright (C) 2013-2017 RhodeCode GmbH
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License, version 3
7 # (only), as published by the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU Affero General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # This program is dual-licensed. If you wish to learn more about the
18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20
21 import logging
22 import traceback
23
24 import sshpubkeys
25 import sshpubkeys.exceptions
26
27 from rhodecode.model import BaseModel
28 from rhodecode.model.db import UserSshKeys
29 from rhodecode.model.meta import Session
30
31 log = logging.getLogger(__name__)
32
33
34 class SshKeyModel(BaseModel):
35 cls = UserSshKeys
36
37 def parse_key(self, key_data):
38 """
39 print(ssh.bits) # 768
40 print(ssh.hash_md5()) # 56:84:1e:90:08:3b:60:c7:29:70:5f:5e:25:a6:3b:86
41 print(ssh.hash_sha256()) # SHA256:xk3IEJIdIoR9MmSRXTP98rjDdZocmXJje/28ohMQEwM
42 print(ssh.hash_sha512()) # SHA512:1C3lNBhjpDVQe39hnyy+xvlZYU3IPwzqK1rVneGavy6O3/ebjEQSFvmeWoyMTplIanmUK1hmr9nA8Skmj516HA
43 print(ssh.comment) # ojar@ojar-laptop
44 print(ssh.options_raw) # None (string of optional options at the beginning of public key)
45 print(ssh.options) # None (options as a dictionary, parsed and validated)
46
47 :param key_data:
48 :return:
49 """
50 ssh = sshpubkeys.SSHKey(strict_mode=True)
51 try:
52 ssh.parse(key_data)
53 return ssh
54 except sshpubkeys.exceptions.InvalidKeyException as err:
55 log.error("Invalid key: %s", err)
56 raise
57 except NotImplementedError as err:
58 log.error("Invalid key type: %s", err)
59 raise
60 except Exception as err:
61 log.error("Key Parse error: %s", err)
62 raise
63
64 def generate_keypair(self, comment=None):
65 from Crypto.PublicKey import RSA
66
67 key = RSA.generate(2048)
68 private = key.exportKey('PEM')
69
70 pubkey = key.publickey()
71 public = pubkey.exportKey('OpenSSH')
72 if comment:
73 public = public + " " + comment
74 return private, public
75
76 def create(self, user, fingerprint, key_data, description):
77 """
78 """
79 user = self._get_user(user)
80
81 new_ssh_key = UserSshKeys()
82 new_ssh_key.ssh_key_fingerprint = fingerprint
83 new_ssh_key.ssh_key_data = key_data
84 new_ssh_key.user_id = user.user_id
85 new_ssh_key.description = description
86
87 Session().add(new_ssh_key)
88
89 return new_ssh_key
90
91 def delete(self, ssh_key_id, user=None):
92 """
93 Deletes given api_key, if user is set it also filters the object for
94 deletion by given user.
95 """
96 ssh_key = UserSshKeys.query().filter(
97 UserSshKeys.ssh_key_id == ssh_key_id)
98
99 if user:
100 user = self._get_user(user)
101 ssh_key = ssh_key.filter(UserSshKeys.user_id == user.user_id)
102 ssh_key = ssh_key.scalar()
103
104 if ssh_key:
105 try:
106 Session().delete(ssh_key)
107 except Exception:
108 log.error(traceback.format_exc())
109 raise
110
111 def get_ssh_keys(self, user):
112 user = self._get_user(user)
113 user_ssh_keys = UserSshKeys.query()\
114 .filter(UserSshKeys.user_id == user.user_id)
115 user_ssh_keys = user_ssh_keys.order_by(UserSshKeys.ssh_key_id)
116 return user_ssh_keys
117
118 def get_ssh_key_by_fingerprint(self, ssh_key_fingerprint):
119 user_ssh_key = UserSshKeys.query()\
120 .filter(UserSshKeys.ssh_key_fingerprint == ssh_key_fingerprint)\
121 .first()
122
123 return user_ssh_key
@@ -0,0 +1,78 b''
1 <div class="panel panel-default">
2 <div class="panel-heading">
3 <h3 class="panel-title">${_('SSH Keys')}</h3>
4 </div>
5 <div class="panel-body">
6 <div class="sshkeys_wrap">
7 <table class="rctable ssh_keys">
8 <tr>
9 <th>${_('Fingerprint')}</th>
10 <th>${_('Description')}</th>
11 <th>${_('Created')}</th>
12 <th>${_('Action')}</th>
13 </tr>
14 %if c.user_ssh_keys:
15 %for ssh_key in c.user_ssh_keys:
16 <tr class="">
17 <td class="">
18 <code>${ssh_key.ssh_key_fingerprint}</code>
19 </td>
20 <td class="td-wrap">${ssh_key.description}</td>
21 <td class="td-tags">${h.format_date(ssh_key.created_on)}</td>
22
23 <td class="td-action">
24 ${h.secure_form(h.route_path('edit_user_ssh_keys_delete', user_id=c.user.user_id), method='POST', request=request)}
25 ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)}
26 <button class="btn btn-link btn-danger" type="submit"
27 onclick="return confirm('${_('Confirm to remove ssh key %s') % ssh_key.ssh_key_fingerprint}');">
28 ${_('Delete')}
29 </button>
30 ${h.end_form()}
31 </td>
32 </tr>
33 %endfor
34 %else:
35 <tr><td><div class="ip">${_('No additional ssh keys specified')}</div></td></tr>
36 %endif
37 </table>
38 </div>
39
40 <div class="user_ssh_keys">
41 ${h.secure_form(h.route_path('edit_user_ssh_keys_add', user_id=c.user.user_id), method='POST', request=request)}
42 <div class="form form-vertical">
43 <!-- fields -->
44 <div class="fields">
45 <div class="field">
46 <div class="label">
47 <label for="new_email">${_('New ssh key')}:</label>
48 </div>
49 <div class="input">
50 ${h.text('description', class_='medium', placeholder=_('Description'))}
51 <a href="${h.route_path('edit_user_ssh_keys_generate_keypair', user_id=c.user.user_id)}">${_('Generate random RSA key')}</a>
52 </div>
53 </div>
54
55 <div class="field">
56 <div class="textarea text-area editor">
57 ${h.textarea('key_data',c.default_key, size=30, placeholder=_("Public key, begins with 'ssh-rsa', 'ssh-dss', 'ssh-ed25519', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', or 'ecdsa-sha2-nistp521'"))}
58 </div>
59 </div>
60
61 <div class="buttons">
62 ${h.submit('save',_('Add'),class_="btn")}
63 ${h.reset('reset',_('Reset'),class_="btn")}
64 </div>
65 </div>
66 </div>
67 ${h.end_form()}
68 </div>
69 </div>
70 </div>
71
72 <script>
73
74 $(document).ready(function(){
75
76
77 });
78 </script>
@@ -0,0 +1,45 b''
1 <div class="panel panel-default">
2 <div class="panel-heading">
3 <h3 class="panel-title">${_('New SSH Key generated')}</h3>
4 </div>
5 <div class="panel-body">
6 <p>
7 ${_('Below is a 2048 bit generated SSH RSA key. You can use it to access RhodeCode via the SSH wrapper.')}
8 </p>
9 <h4>${_('Private key')}</h4>
10 <pre>
11 # Save the content as
12 ~/.ssh/id_rsa_rhodecode_access_priv.key
13 # Change permissions
14 chmod 0600 ~/.ssh/id_rsa_rhodecode_access_priv.key
15 </pre>
16
17 <div>
18 <textarea style="height: 300px">${c.private}</textarea>
19 </div>
20 <br/>
21
22
23 <h4>${_('Public key')}</h4>
24 <pre>
25 # Save the content as
26 ~/.ssh/id_rsa_rhodecode_access_pub.key
27 # Change permissions
28 chmod 0600 ~/.ssh/id_rsa_rhodecode_access_pub.key
29 </pre>
30
31 <input type="text" value="${c.public}" class="large text" size="100"/>
32 <p>
33 <a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id, _query=dict(default_key=c.public))}">${_('Add this generated key')}</a>
34 </p>
35
36 </div>
37 </div>
38
39 <script>
40
41 $(document).ready(function(){
42
43
44 });
45 </script>
@@ -1,2086 +1,2086 b''
1 1 # Generated by pip2nix 0.4.0
2 2 # See https://github.com/johbo/pip2nix
3 3
4 4 {
5 5 Babel = super.buildPythonPackage {
6 6 name = "Babel-1.3";
7 7 buildInputs = with self; [];
8 8 doCheck = false;
9 9 propagatedBuildInputs = with self; [pytz];
10 10 src = fetchurl {
11 11 url = "https://pypi.python.org/packages/33/27/e3978243a03a76398c384c83f7ca879bc6e8f1511233a621fcada135606e/Babel-1.3.tar.gz";
12 12 md5 = "5264ceb02717843cbc9ffce8e6e06bdb";
13 13 };
14 14 meta = {
15 15 license = [ pkgs.lib.licenses.bsdOriginal ];
16 16 };
17 17 };
18 18 Beaker = super.buildPythonPackage {
19 19 name = "Beaker-1.9.0";
20 20 buildInputs = with self; [];
21 21 doCheck = false;
22 22 propagatedBuildInputs = with self; [funcsigs];
23 23 src = fetchurl {
24 24 url = "https://pypi.python.org/packages/93/b2/12de6937b06e9615dbb3cb3a1c9af17f133f435bdef59f4ad42032b6eb49/Beaker-1.9.0.tar.gz";
25 25 md5 = "38b3fcdfa24faf97c6cf66991eb54e9c";
26 26 };
27 27 meta = {
28 28 license = [ pkgs.lib.licenses.bsdOriginal ];
29 29 };
30 30 };
31 31 CProfileV = super.buildPythonPackage {
32 32 name = "CProfileV-1.0.7";
33 33 buildInputs = with self; [];
34 34 doCheck = false;
35 35 propagatedBuildInputs = with self; [bottle];
36 36 src = fetchurl {
37 37 url = "https://pypi.python.org/packages/df/50/d8c1ada7d537c64b0f76453fa31dedb6af6e27b82fcf0331e5f71a4cf98b/CProfileV-1.0.7.tar.gz";
38 38 md5 = "db4c7640438aa3d8887e194c81c7a019";
39 39 };
40 40 meta = {
41 41 license = [ pkgs.lib.licenses.mit ];
42 42 };
43 43 };
44 44 Chameleon = super.buildPythonPackage {
45 45 name = "Chameleon-2.24";
46 46 buildInputs = with self; [];
47 47 doCheck = false;
48 48 propagatedBuildInputs = with self; [];
49 49 src = fetchurl {
50 50 url = "https://pypi.python.org/packages/5a/9e/637379ffa13c5172b5c0e704833ffea6bf51cec7567f93fd6e903d53ed74/Chameleon-2.24.tar.gz";
51 51 md5 = "1b01f1f6533a8a11d0d2f2366dec5342";
52 52 };
53 53 meta = {
54 54 license = [ { fullName = "BSD-like (http://repoze.org/license.html)"; } ];
55 55 };
56 56 };
57 57 FormEncode = super.buildPythonPackage {
58 58 name = "FormEncode-1.2.4";
59 59 buildInputs = with self; [];
60 60 doCheck = false;
61 61 propagatedBuildInputs = with self; [];
62 62 src = fetchurl {
63 63 url = "https://pypi.python.org/packages/8e/59/0174271a6f004512e0201188593e6d319db139d14cb7490e488bbb078015/FormEncode-1.2.4.tar.gz";
64 64 md5 = "6bc17fb9aed8aea198975e888e2077f4";
65 65 };
66 66 meta = {
67 67 license = [ pkgs.lib.licenses.psfl ];
68 68 };
69 69 };
70 70 Jinja2 = super.buildPythonPackage {
71 71 name = "Jinja2-2.7.3";
72 72 buildInputs = with self; [];
73 73 doCheck = false;
74 74 propagatedBuildInputs = with self; [MarkupSafe];
75 75 src = fetchurl {
76 76 url = "https://pypi.python.org/packages/b0/73/eab0bca302d6d6a0b5c402f47ad1760dc9cb2dd14bbc1873ad48db258e4d/Jinja2-2.7.3.tar.gz";
77 77 md5 = "b9dffd2f3b43d673802fe857c8445b1a";
78 78 };
79 79 meta = {
80 80 license = [ pkgs.lib.licenses.bsdOriginal ];
81 81 };
82 82 };
83 83 Mako = super.buildPythonPackage {
84 84 name = "Mako-1.0.6";
85 85 buildInputs = with self; [];
86 86 doCheck = false;
87 87 propagatedBuildInputs = with self; [MarkupSafe];
88 88 src = fetchurl {
89 89 url = "https://pypi.python.org/packages/56/4b/cb75836863a6382199aefb3d3809937e21fa4cb0db15a4f4ba0ecc2e7e8e/Mako-1.0.6.tar.gz";
90 90 md5 = "a28e22a339080316b2acc352b9ee631c";
91 91 };
92 92 meta = {
93 93 license = [ pkgs.lib.licenses.mit ];
94 94 };
95 95 };
96 96 Markdown = super.buildPythonPackage {
97 97 name = "Markdown-2.6.8";
98 98 buildInputs = with self; [];
99 99 doCheck = false;
100 100 propagatedBuildInputs = with self; [];
101 101 src = fetchurl {
102 102 url = "https://pypi.python.org/packages/1d/25/3f6d2cb31ec42ca5bd3bfbea99b63892b735d76e26f20dd2dcc34ffe4f0d/Markdown-2.6.8.tar.gz";
103 103 md5 = "d9ef057a5bd185f6f536400a31fc5d45";
104 104 };
105 105 meta = {
106 106 license = [ pkgs.lib.licenses.bsdOriginal ];
107 107 };
108 108 };
109 109 MarkupSafe = super.buildPythonPackage {
110 110 name = "MarkupSafe-0.23";
111 111 buildInputs = with self; [];
112 112 doCheck = false;
113 113 propagatedBuildInputs = with self; [];
114 114 src = fetchurl {
115 115 url = "https://pypi.python.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/MarkupSafe-0.23.tar.gz";
116 116 md5 = "f5ab3deee4c37cd6a922fb81e730da6e";
117 117 };
118 118 meta = {
119 119 license = [ pkgs.lib.licenses.bsdOriginal ];
120 120 };
121 121 };
122 122 MySQL-python = super.buildPythonPackage {
123 123 name = "MySQL-python-1.2.5";
124 124 buildInputs = with self; [];
125 125 doCheck = false;
126 126 propagatedBuildInputs = with self; [];
127 127 src = fetchurl {
128 128 url = "https://pypi.python.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip";
129 129 md5 = "654f75b302db6ed8dc5a898c625e030c";
130 130 };
131 131 meta = {
132 132 license = [ pkgs.lib.licenses.gpl1 ];
133 133 };
134 134 };
135 135 Paste = super.buildPythonPackage {
136 136 name = "Paste-2.0.3";
137 137 buildInputs = with self; [];
138 138 doCheck = false;
139 139 propagatedBuildInputs = with self; [six];
140 140 src = fetchurl {
141 141 url = "https://pypi.python.org/packages/30/c3/5c2f7c7a02e4f58d4454353fa1c32c94f79fa4e36d07a67c0ac295ea369e/Paste-2.0.3.tar.gz";
142 142 md5 = "1231e14eae62fa7ed76e9130b04bc61e";
143 143 };
144 144 meta = {
145 145 license = [ pkgs.lib.licenses.mit ];
146 146 };
147 147 };
148 148 PasteDeploy = super.buildPythonPackage {
149 149 name = "PasteDeploy-1.5.2";
150 150 buildInputs = with self; [];
151 151 doCheck = false;
152 152 propagatedBuildInputs = with self; [];
153 153 src = fetchurl {
154 154 url = "https://pypi.python.org/packages/0f/90/8e20cdae206c543ea10793cbf4136eb9a8b3f417e04e40a29d72d9922cbd/PasteDeploy-1.5.2.tar.gz";
155 155 md5 = "352b7205c78c8de4987578d19431af3b";
156 156 };
157 157 meta = {
158 158 license = [ pkgs.lib.licenses.mit ];
159 159 };
160 160 };
161 161 PasteScript = super.buildPythonPackage {
162 162 name = "PasteScript-1.7.5";
163 163 buildInputs = with self; [];
164 164 doCheck = false;
165 165 propagatedBuildInputs = with self; [Paste PasteDeploy];
166 166 src = fetchurl {
167 167 url = "https://pypi.python.org/packages/a5/05/fc60efa7c2f17a1dbaeccb2a903a1e90902d92b9d00eebabe3095829d806/PasteScript-1.7.5.tar.gz";
168 168 md5 = "4c72d78dcb6bb993f30536842c16af4d";
169 169 };
170 170 meta = {
171 171 license = [ pkgs.lib.licenses.mit ];
172 172 };
173 173 };
174 174 Pygments = super.buildPythonPackage {
175 175 name = "Pygments-2.2.0";
176 176 buildInputs = with self; [];
177 177 doCheck = false;
178 178 propagatedBuildInputs = with self; [];
179 179 src = fetchurl {
180 180 url = "https://pypi.python.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-2.2.0.tar.gz";
181 181 md5 = "13037baca42f16917cbd5ad2fab50844";
182 182 };
183 183 meta = {
184 184 license = [ pkgs.lib.licenses.bsdOriginal ];
185 185 };
186 186 };
187 187 Pylons = super.buildPythonPackage {
188 188 name = "Pylons-1.0.2.dev20170630";
189 189 buildInputs = with self; [];
190 190 doCheck = false;
191 191 propagatedBuildInputs = with self; [Routes WebHelpers Beaker Paste PasteDeploy PasteScript FormEncode simplejson decorator nose Mako WebError WebTest Tempita MarkupSafe WebOb];
192 192 src = fetchurl {
193 193 url = "https://code.rhodecode.com/upstream/pylons/archive/707354ee4261b9c10450404fc9852ccea4fd667d.tar.gz?md5=f26633726fa2cd3a340316ee6a5d218f";
194 194 md5 = "f26633726fa2cd3a340316ee6a5d218f";
195 195 };
196 196 meta = {
197 197 license = [ pkgs.lib.licenses.bsdOriginal ];
198 198 };
199 199 };
200 200 Routes = super.buildPythonPackage {
201 201 name = "Routes-1.13";
202 202 buildInputs = with self; [];
203 203 doCheck = false;
204 204 propagatedBuildInputs = with self; [repoze.lru];
205 205 src = fetchurl {
206 206 url = "https://pypi.python.org/packages/88/d3/259c3b3cde8837eb9441ab5f574a660e8a4acea8f54a078441d4d2acac1c/Routes-1.13.tar.gz";
207 207 md5 = "d527b0ab7dd9172b1275a41f97448783";
208 208 };
209 209 meta = {
210 210 license = [ pkgs.lib.licenses.bsdOriginal ];
211 211 };
212 212 };
213 213 SQLAlchemy = super.buildPythonPackage {
214 214 name = "SQLAlchemy-1.1.11";
215 215 buildInputs = with self; [];
216 216 doCheck = false;
217 217 propagatedBuildInputs = with self; [];
218 218 src = fetchurl {
219 219 url = "https://pypi.python.org/packages/59/f1/28f2205c3175e6bf32300c0f30f9d91dbc9eb910debbff3ffecb88d18528/SQLAlchemy-1.1.11.tar.gz";
220 220 md5 = "3de387eddb4012083a4562928c511e43";
221 221 };
222 222 meta = {
223 223 license = [ pkgs.lib.licenses.mit ];
224 224 };
225 225 };
226 226 Sphinx = super.buildPythonPackage {
227 227 name = "Sphinx-1.2.2";
228 228 buildInputs = with self; [];
229 229 doCheck = false;
230 230 propagatedBuildInputs = with self; [Pygments docutils Jinja2];
231 231 src = fetchurl {
232 232 url = "https://pypi.python.org/packages/0a/50/34017e6efcd372893a416aba14b84a1a149fc7074537b0e9cb6ca7b7abe9/Sphinx-1.2.2.tar.gz";
233 233 md5 = "3dc73ccaa8d0bfb2d62fb671b1f7e8a4";
234 234 };
235 235 meta = {
236 236 license = [ pkgs.lib.licenses.bsdOriginal ];
237 237 };
238 238 };
239 239 Tempita = super.buildPythonPackage {
240 240 name = "Tempita-0.5.2";
241 241 buildInputs = with self; [];
242 242 doCheck = false;
243 243 propagatedBuildInputs = with self; [];
244 244 src = fetchurl {
245 245 url = "https://pypi.python.org/packages/56/c8/8ed6eee83dbddf7b0fc64dd5d4454bc05e6ccaafff47991f73f2894d9ff4/Tempita-0.5.2.tar.gz";
246 246 md5 = "4c2f17bb9d481821c41b6fbee904cea1";
247 247 };
248 248 meta = {
249 249 license = [ pkgs.lib.licenses.mit ];
250 250 };
251 251 };
252 252 URLObject = super.buildPythonPackage {
253 253 name = "URLObject-2.4.0";
254 254 buildInputs = with self; [];
255 255 doCheck = false;
256 256 propagatedBuildInputs = with self; [];
257 257 src = fetchurl {
258 258 url = "https://pypi.python.org/packages/cb/b6/e25e58500f9caef85d664bec71ec67c116897bfebf8622c32cb75d1ca199/URLObject-2.4.0.tar.gz";
259 259 md5 = "2ed819738a9f0a3051f31dc9924e3065";
260 260 };
261 261 meta = {
262 262 license = [ ];
263 263 };
264 264 };
265 265 WebError = super.buildPythonPackage {
266 266 name = "WebError-0.10.3";
267 267 buildInputs = with self; [];
268 268 doCheck = false;
269 269 propagatedBuildInputs = with self; [WebOb Tempita Pygments Paste];
270 270 src = fetchurl {
271 271 url = "https://pypi.python.org/packages/35/76/e7e5c2ce7e9c7f31b54c1ff295a495886d1279a002557d74dd8957346a79/WebError-0.10.3.tar.gz";
272 272 md5 = "84b9990b0baae6fd440b1e60cdd06f9a";
273 273 };
274 274 meta = {
275 275 license = [ pkgs.lib.licenses.mit ];
276 276 };
277 277 };
278 278 WebHelpers = super.buildPythonPackage {
279 279 name = "WebHelpers-1.3";
280 280 buildInputs = with self; [];
281 281 doCheck = false;
282 282 propagatedBuildInputs = with self; [MarkupSafe];
283 283 src = fetchurl {
284 284 url = "https://pypi.python.org/packages/ee/68/4d07672821d514184357f1552f2dad923324f597e722de3b016ca4f7844f/WebHelpers-1.3.tar.gz";
285 285 md5 = "32749ffadfc40fea51075a7def32588b";
286 286 };
287 287 meta = {
288 288 license = [ pkgs.lib.licenses.bsdOriginal ];
289 289 };
290 290 };
291 291 WebHelpers2 = super.buildPythonPackage {
292 292 name = "WebHelpers2-2.0";
293 293 buildInputs = with self; [];
294 294 doCheck = false;
295 295 propagatedBuildInputs = with self; [MarkupSafe six];
296 296 src = fetchurl {
297 297 url = "https://pypi.python.org/packages/ff/30/56342c6ea522439e3662427c8d7b5e5b390dff4ff2dc92d8afcb8ab68b75/WebHelpers2-2.0.tar.gz";
298 298 md5 = "0f6b68d70c12ee0aed48c00b24da13d3";
299 299 };
300 300 meta = {
301 301 license = [ pkgs.lib.licenses.mit ];
302 302 };
303 303 };
304 304 WebOb = super.buildPythonPackage {
305 305 name = "WebOb-1.7.3";
306 306 buildInputs = with self; [];
307 307 doCheck = false;
308 308 propagatedBuildInputs = with self; [];
309 309 src = fetchurl {
310 310 url = "https://pypi.python.org/packages/46/87/2f96d8d43b2078fae6e1d33fa86b95c228cebed060f4e3c7576cc44ea83b/WebOb-1.7.3.tar.gz";
311 311 md5 = "350028baffc508e3d23c078118e35316";
312 312 };
313 313 meta = {
314 314 license = [ pkgs.lib.licenses.mit ];
315 315 };
316 316 };
317 317 WebTest = super.buildPythonPackage {
318 318 name = "WebTest-2.0.27";
319 319 buildInputs = with self; [];
320 320 doCheck = false;
321 321 propagatedBuildInputs = with self; [six WebOb waitress beautifulsoup4];
322 322 src = fetchurl {
323 323 url = "https://pypi.python.org/packages/80/fa/ca3a759985c72e3a124cbca3e1f8a2e931a07ffd31fd45d8f7bf21cb95cf/WebTest-2.0.27.tar.gz";
324 324 md5 = "54e6515ac71c51b6fc90179483c749ad";
325 325 };
326 326 meta = {
327 327 license = [ pkgs.lib.licenses.mit ];
328 328 };
329 329 };
330 330 Whoosh = super.buildPythonPackage {
331 331 name = "Whoosh-2.7.4";
332 332 buildInputs = with self; [];
333 333 doCheck = false;
334 334 propagatedBuildInputs = with self; [];
335 335 src = fetchurl {
336 336 url = "https://pypi.python.org/packages/25/2b/6beed2107b148edc1321da0d489afc4617b9ed317ef7b72d4993cad9b684/Whoosh-2.7.4.tar.gz";
337 337 md5 = "c2710105f20b3e29936bd2357383c325";
338 338 };
339 339 meta = {
340 340 license = [ pkgs.lib.licenses.bsdOriginal pkgs.lib.licenses.bsd2 ];
341 341 };
342 342 };
343 343 alembic = super.buildPythonPackage {
344 344 name = "alembic-0.9.2";
345 345 buildInputs = with self; [];
346 346 doCheck = false;
347 347 propagatedBuildInputs = with self; [SQLAlchemy Mako python-editor python-dateutil];
348 348 src = fetchurl {
349 349 url = "https://pypi.python.org/packages/78/48/b5b26e7218b415f40b60b92c53853d242e5456c0f19f6c66101d98ff5f2a/alembic-0.9.2.tar.gz";
350 350 md5 = "40daf8bae50969beea40efaaf0839ff4";
351 351 };
352 352 meta = {
353 353 license = [ pkgs.lib.licenses.mit ];
354 354 };
355 355 };
356 356 amqplib = super.buildPythonPackage {
357 357 name = "amqplib-1.0.2";
358 358 buildInputs = with self; [];
359 359 doCheck = false;
360 360 propagatedBuildInputs = with self; [];
361 361 src = fetchurl {
362 362 url = "https://pypi.python.org/packages/75/b7/8c2429bf8d92354a0118614f9a4d15e53bc69ebedce534284111de5a0102/amqplib-1.0.2.tgz";
363 363 md5 = "5c92f17fbedd99b2b4a836d4352d1e2f";
364 364 };
365 365 meta = {
366 366 license = [ { fullName = "LGPL"; } { fullName = "GNU Library or Lesser General Public License (LGPL)"; } ];
367 367 };
368 368 };
369 369 anyjson = super.buildPythonPackage {
370 370 name = "anyjson-0.3.3";
371 371 buildInputs = with self; [];
372 372 doCheck = false;
373 373 propagatedBuildInputs = with self; [];
374 374 src = fetchurl {
375 375 url = "https://pypi.python.org/packages/c3/4d/d4089e1a3dd25b46bebdb55a992b0797cff657b4477bc32ce28038fdecbc/anyjson-0.3.3.tar.gz";
376 376 md5 = "2ea28d6ec311aeeebaf993cb3008b27c";
377 377 };
378 378 meta = {
379 379 license = [ pkgs.lib.licenses.bsdOriginal ];
380 380 };
381 381 };
382 382 appenlight-client = super.buildPythonPackage {
383 383 name = "appenlight-client-0.6.21";
384 384 buildInputs = with self; [];
385 385 doCheck = false;
386 386 propagatedBuildInputs = with self; [WebOb requests six];
387 387 src = fetchurl {
388 388 url = "https://pypi.python.org/packages/c9/23/91b66cfa0b963662c10b2a06ccaadf3f3a4848a7a2aa16255cb43d5160ec/appenlight_client-0.6.21.tar.gz";
389 389 md5 = "273999ac854fdaefa8d0fb61965a4ed9";
390 390 };
391 391 meta = {
392 392 license = [ pkgs.lib.licenses.bsdOriginal ];
393 393 };
394 394 };
395 395 authomatic = super.buildPythonPackage {
396 396 name = "authomatic-0.1.0.post1";
397 397 buildInputs = with self; [];
398 398 doCheck = false;
399 399 propagatedBuildInputs = with self; [];
400 400 src = fetchurl {
401 401 url = "https://pypi.python.org/packages/08/1a/8a930461e604c2d5a7a871e1ac59fa82ccf994c32e807230c8d2fb07815a/Authomatic-0.1.0.post1.tar.gz";
402 402 md5 = "be3f3ce08747d776aae6d6cc8dcb49a9";
403 403 };
404 404 meta = {
405 405 license = [ pkgs.lib.licenses.mit ];
406 406 };
407 407 };
408 408 backports.shutil-get-terminal-size = super.buildPythonPackage {
409 409 name = "backports.shutil-get-terminal-size-1.0.0";
410 410 buildInputs = with self; [];
411 411 doCheck = false;
412 412 propagatedBuildInputs = with self; [];
413 413 src = fetchurl {
414 414 url = "https://pypi.python.org/packages/ec/9c/368086faa9c016efce5da3e0e13ba392c9db79e3ab740b763fe28620b18b/backports.shutil_get_terminal_size-1.0.0.tar.gz";
415 415 md5 = "03267762480bd86b50580dc19dff3c66";
416 416 };
417 417 meta = {
418 418 license = [ pkgs.lib.licenses.mit ];
419 419 };
420 420 };
421 421 beautifulsoup4 = super.buildPythonPackage {
422 422 name = "beautifulsoup4-4.6.0";
423 423 buildInputs = with self; [];
424 424 doCheck = false;
425 425 propagatedBuildInputs = with self; [];
426 426 src = fetchurl {
427 427 url = "https://pypi.python.org/packages/fa/8d/1d14391fdaed5abada4e0f63543fef49b8331a34ca60c88bd521bcf7f782/beautifulsoup4-4.6.0.tar.gz";
428 428 md5 = "c17714d0f91a23b708a592cb3c697728";
429 429 };
430 430 meta = {
431 431 license = [ pkgs.lib.licenses.mit ];
432 432 };
433 433 };
434 434 bleach = super.buildPythonPackage {
435 435 name = "bleach-1.5.0";
436 436 buildInputs = with self; [];
437 437 doCheck = false;
438 438 propagatedBuildInputs = with self; [six html5lib];
439 439 src = fetchurl {
440 440 url = "https://pypi.python.org/packages/99/00/25a8fce4de102bf6e3cc76bc4ea60685b2fee33bde1b34830c70cacc26a7/bleach-1.5.0.tar.gz";
441 441 md5 = "b663300efdf421b3b727b19d7be9c7e7";
442 442 };
443 443 meta = {
444 444 license = [ pkgs.lib.licenses.asl20 ];
445 445 };
446 446 };
447 447 bottle = super.buildPythonPackage {
448 448 name = "bottle-0.12.8";
449 449 buildInputs = with self; [];
450 450 doCheck = false;
451 451 propagatedBuildInputs = with self; [];
452 452 src = fetchurl {
453 453 url = "https://pypi.python.org/packages/52/df/e4a408f3a7af396d186d4ecd3b389dd764f0f943b4fa8d257bfe7b49d343/bottle-0.12.8.tar.gz";
454 454 md5 = "13132c0a8f607bf860810a6ee9064c5b";
455 455 };
456 456 meta = {
457 457 license = [ pkgs.lib.licenses.mit ];
458 458 };
459 459 };
460 460 bumpversion = super.buildPythonPackage {
461 461 name = "bumpversion-0.5.3";
462 462 buildInputs = with self; [];
463 463 doCheck = false;
464 464 propagatedBuildInputs = with self; [];
465 465 src = fetchurl {
466 466 url = "https://pypi.python.org/packages/14/41/8c9da3549f8e00c84f0432c3a8cf8ed6898374714676aab91501d48760db/bumpversion-0.5.3.tar.gz";
467 467 md5 = "c66a3492eafcf5ad4b024be9fca29820";
468 468 };
469 469 meta = {
470 470 license = [ pkgs.lib.licenses.mit ];
471 471 };
472 472 };
473 473 celery = super.buildPythonPackage {
474 474 name = "celery-2.2.10";
475 475 buildInputs = with self; [];
476 476 doCheck = false;
477 477 propagatedBuildInputs = with self; [python-dateutil anyjson kombu pyparsing];
478 478 src = fetchurl {
479 479 url = "https://pypi.python.org/packages/b1/64/860fd50e45844c83442e7953effcddeff66b2851d90b2d784f7201c111b8/celery-2.2.10.tar.gz";
480 480 md5 = "898bc87e54f278055b561316ba73e222";
481 481 };
482 482 meta = {
483 483 license = [ pkgs.lib.licenses.bsdOriginal ];
484 484 };
485 485 };
486 486 channelstream = super.buildPythonPackage {
487 487 name = "channelstream-0.5.2";
488 488 buildInputs = with self; [];
489 489 doCheck = false;
490 490 propagatedBuildInputs = with self; [gevent ws4py pyramid pyramid-jinja2 itsdangerous requests six];
491 491 src = fetchurl {
492 492 url = "https://pypi.python.org/packages/2b/31/29a8e085cf5bf97fa88e7b947adabfc581a18a3463adf77fb6dada34a65f/channelstream-0.5.2.tar.gz";
493 493 md5 = "1c5eb2a8a405be6f1073da94da6d81d3";
494 494 };
495 495 meta = {
496 496 license = [ pkgs.lib.licenses.bsdOriginal ];
497 497 };
498 498 };
499 499 click = super.buildPythonPackage {
500 500 name = "click-5.1";
501 501 buildInputs = with self; [];
502 502 doCheck = false;
503 503 propagatedBuildInputs = with self; [];
504 504 src = fetchurl {
505 505 url = "https://pypi.python.org/packages/b7/34/a496632c4fb6c1ee76efedf77bb8d28b29363d839953d95095b12defe791/click-5.1.tar.gz";
506 506 md5 = "9c5323008cccfe232a8b161fc8196d41";
507 507 };
508 508 meta = {
509 509 license = [ pkgs.lib.licenses.bsdOriginal ];
510 510 };
511 511 };
512 512 colander = super.buildPythonPackage {
513 513 name = "colander-1.3.3";
514 514 buildInputs = with self; [];
515 515 doCheck = false;
516 516 propagatedBuildInputs = with self; [translationstring iso8601];
517 517 src = fetchurl {
518 518 url = "https://pypi.python.org/packages/54/a9/9862a561e015b2c7b56404c0b13828a8bdc51e05ab3703bd792cec064487/colander-1.3.3.tar.gz";
519 519 md5 = "f5d783768c51d73695f49bbe95778ab4";
520 520 };
521 521 meta = {
522 522 license = [ { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
523 523 };
524 524 };
525 525 configobj = super.buildPythonPackage {
526 526 name = "configobj-5.0.6";
527 527 buildInputs = with self; [];
528 528 doCheck = false;
529 529 propagatedBuildInputs = with self; [six];
530 530 src = fetchurl {
531 531 url = "https://pypi.python.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz";
532 532 md5 = "e472a3a1c2a67bb0ec9b5d54c13a47d6";
533 533 };
534 534 meta = {
535 535 license = [ pkgs.lib.licenses.bsdOriginal ];
536 536 };
537 537 };
538 538 configparser = super.buildPythonPackage {
539 539 name = "configparser-3.5.0";
540 540 buildInputs = with self; [];
541 541 doCheck = false;
542 542 propagatedBuildInputs = with self; [];
543 543 src = fetchurl {
544 544 url = "https://pypi.python.org/packages/7c/69/c2ce7e91c89dc073eb1aa74c0621c3eefbffe8216b3f9af9d3885265c01c/configparser-3.5.0.tar.gz";
545 545 md5 = "cfdd915a5b7a6c09917a64a573140538";
546 546 };
547 547 meta = {
548 548 license = [ pkgs.lib.licenses.mit ];
549 549 };
550 550 };
551 551 cov-core = super.buildPythonPackage {
552 552 name = "cov-core-1.15.0";
553 553 buildInputs = with self; [];
554 554 doCheck = false;
555 555 propagatedBuildInputs = with self; [coverage];
556 556 src = fetchurl {
557 557 url = "https://pypi.python.org/packages/4b/87/13e75a47b4ba1be06f29f6d807ca99638bedc6b57fa491cd3de891ca2923/cov-core-1.15.0.tar.gz";
558 558 md5 = "f519d4cb4c4e52856afb14af52919fe6";
559 559 };
560 560 meta = {
561 561 license = [ pkgs.lib.licenses.mit ];
562 562 };
563 563 };
564 564 coverage = super.buildPythonPackage {
565 565 name = "coverage-3.7.1";
566 566 buildInputs = with self; [];
567 567 doCheck = false;
568 568 propagatedBuildInputs = with self; [];
569 569 src = fetchurl {
570 570 url = "https://pypi.python.org/packages/09/4f/89b06c7fdc09687bca507dc411c342556ef9c5a3b26756137a4878ff19bf/coverage-3.7.1.tar.gz";
571 571 md5 = "c47b36ceb17eaff3ecfab3bcd347d0df";
572 572 };
573 573 meta = {
574 574 license = [ pkgs.lib.licenses.bsdOriginal ];
575 575 };
576 576 };
577 577 cssselect = super.buildPythonPackage {
578 578 name = "cssselect-1.0.1";
579 579 buildInputs = with self; [];
580 580 doCheck = false;
581 581 propagatedBuildInputs = with self; [];
582 582 src = fetchurl {
583 583 url = "https://pypi.python.org/packages/77/ff/9c865275cd19290feba56344eba570e719efb7ca5b34d67ed12b22ebbb0d/cssselect-1.0.1.tar.gz";
584 584 md5 = "3fa03bf82a9f0b1223c0f1eb1369e139";
585 585 };
586 586 meta = {
587 587 license = [ pkgs.lib.licenses.bsdOriginal ];
588 588 };
589 589 };
590 590 decorator = super.buildPythonPackage {
591 591 name = "decorator-4.0.11";
592 592 buildInputs = with self; [];
593 593 doCheck = false;
594 594 propagatedBuildInputs = with self; [];
595 595 src = fetchurl {
596 596 url = "https://pypi.python.org/packages/cc/ac/5a16f1fc0506ff72fcc8fd4e858e3a1c231f224ab79bb7c4c9b2094cc570/decorator-4.0.11.tar.gz";
597 597 md5 = "73644c8f0bd4983d1b6a34b49adec0ae";
598 598 };
599 599 meta = {
600 600 license = [ pkgs.lib.licenses.bsdOriginal { fullName = "new BSD License"; } ];
601 601 };
602 602 };
603 603 deform = super.buildPythonPackage {
604 604 name = "deform-2.0.4";
605 605 buildInputs = with self; [];
606 606 doCheck = false;
607 607 propagatedBuildInputs = with self; [Chameleon colander iso8601 peppercorn translationstring zope.deprecation];
608 608 src = fetchurl {
609 609 url = "https://pypi.python.org/packages/66/3b/eefcb07abcab7a97f6665aa2d0cf1af741d9d6e78a2e4657fd2b89f89880/deform-2.0.4.tar.gz";
610 610 md5 = "34756e42cf50dd4b4430809116c4ec0a";
611 611 };
612 612 meta = {
613 613 license = [ { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
614 614 };
615 615 };
616 616 docutils = super.buildPythonPackage {
617 617 name = "docutils-0.13.1";
618 618 buildInputs = with self; [];
619 619 doCheck = false;
620 620 propagatedBuildInputs = with self; [];
621 621 src = fetchurl {
622 622 url = "https://pypi.python.org/packages/05/25/7b5484aca5d46915493f1fd4ecb63c38c333bd32aa9ad6e19da8d08895ae/docutils-0.13.1.tar.gz";
623 623 md5 = "ea4a893c633c788be9b8078b6b305d53";
624 624 };
625 625 meta = {
626 626 license = [ pkgs.lib.licenses.bsdOriginal pkgs.lib.licenses.publicDomain pkgs.lib.licenses.gpl1 { fullName = "public domain, Python, 2-Clause BSD, GPL 3 (see COPYING.txt)"; } pkgs.lib.licenses.psfl ];
627 627 };
628 628 };
629 629 dogpile.cache = super.buildPythonPackage {
630 630 name = "dogpile.cache-0.6.4";
631 631 buildInputs = with self; [];
632 632 doCheck = false;
633 633 propagatedBuildInputs = with self; [];
634 634 src = fetchurl {
635 635 url = "https://pypi.python.org/packages/b6/3d/35c05ca01c070bb70d9d422f2c4858ecb021b05b21af438fec5ccd7b945c/dogpile.cache-0.6.4.tar.gz";
636 636 md5 = "66e0a6cae6c08cb1ea25f89d0eadfeb0";
637 637 };
638 638 meta = {
639 639 license = [ pkgs.lib.licenses.bsdOriginal ];
640 640 };
641 641 };
642 642 dogpile.core = super.buildPythonPackage {
643 643 name = "dogpile.core-0.4.1";
644 644 buildInputs = with self; [];
645 645 doCheck = false;
646 646 propagatedBuildInputs = with self; [];
647 647 src = fetchurl {
648 648 url = "https://pypi.python.org/packages/0e/77/e72abc04c22aedf874301861e5c1e761231c288b5de369c18be8f4b5c9bb/dogpile.core-0.4.1.tar.gz";
649 649 md5 = "01cb19f52bba3e95c9b560f39341f045";
650 650 };
651 651 meta = {
652 652 license = [ pkgs.lib.licenses.bsdOriginal ];
653 653 };
654 654 };
655 655 ecdsa = super.buildPythonPackage {
656 name = "ecdsa-0.11";
656 name = "ecdsa-0.13";
657 657 buildInputs = with self; [];
658 658 doCheck = false;
659 659 propagatedBuildInputs = with self; [];
660 660 src = fetchurl {
661 url = "https://pypi.python.org/packages/6c/3f/92fe5dcdcaa7bd117be21e5520c9a54375112b66ec000d209e9e9519fad1/ecdsa-0.11.tar.gz";
662 md5 = "8ef586fe4dbb156697d756900cb41d7c";
661 url = "https://pypi.python.org/packages/f9/e5/99ebb176e47f150ac115ffeda5fedb6a3dbb3c00c74a59fd84ddf12f5857/ecdsa-0.13.tar.gz";
662 md5 = "1f60eda9cb5c46722856db41a3ae6670";
663 663 };
664 664 meta = {
665 665 license = [ pkgs.lib.licenses.mit ];
666 666 };
667 667 };
668 668 elasticsearch = super.buildPythonPackage {
669 669 name = "elasticsearch-2.3.0";
670 670 buildInputs = with self; [];
671 671 doCheck = false;
672 672 propagatedBuildInputs = with self; [urllib3];
673 673 src = fetchurl {
674 674 url = "https://pypi.python.org/packages/10/35/5fd52c5f0b0ee405ed4b5195e8bce44c5e041787680dc7b94b8071cac600/elasticsearch-2.3.0.tar.gz";
675 675 md5 = "2550f3b51629cf1ef9636608af92c340";
676 676 };
677 677 meta = {
678 678 license = [ pkgs.lib.licenses.asl20 ];
679 679 };
680 680 };
681 681 elasticsearch-dsl = super.buildPythonPackage {
682 682 name = "elasticsearch-dsl-2.2.0";
683 683 buildInputs = with self; [];
684 684 doCheck = false;
685 685 propagatedBuildInputs = with self; [six python-dateutil elasticsearch];
686 686 src = fetchurl {
687 687 url = "https://pypi.python.org/packages/66/2f/52a086968788e58461641570f45c3207a52d46ebbe9b77dc22b6a8ffda66/elasticsearch-dsl-2.2.0.tar.gz";
688 688 md5 = "fa6bd3c87ea3caa8f0f051bc37c53221";
689 689 };
690 690 meta = {
691 691 license = [ pkgs.lib.licenses.asl20 ];
692 692 };
693 693 };
694 694 entrypoints = super.buildPythonPackage {
695 695 name = "entrypoints-0.2.2";
696 696 buildInputs = with self; [];
697 697 doCheck = false;
698 698 propagatedBuildInputs = with self; [configparser];
699 699 src = fetchurl {
700 700 url = "https://code.rhodecode.com/upstream/entrypoints/archive/96e6d645684e1af3d7df5b5272f3fe85a546b233.tar.gz?md5=7db37771aea9ac9fefe093e5d6987313";
701 701 md5 = "7db37771aea9ac9fefe093e5d6987313";
702 702 };
703 703 meta = {
704 704 license = [ pkgs.lib.licenses.mit ];
705 705 };
706 706 };
707 707 enum34 = super.buildPythonPackage {
708 708 name = "enum34-1.1.6";
709 709 buildInputs = with self; [];
710 710 doCheck = false;
711 711 propagatedBuildInputs = with self; [];
712 712 src = fetchurl {
713 713 url = "https://pypi.python.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz";
714 714 md5 = "5f13a0841a61f7fc295c514490d120d0";
715 715 };
716 716 meta = {
717 717 license = [ pkgs.lib.licenses.bsdOriginal ];
718 718 };
719 719 };
720 720 funcsigs = super.buildPythonPackage {
721 721 name = "funcsigs-1.0.2";
722 722 buildInputs = with self; [];
723 723 doCheck = false;
724 724 propagatedBuildInputs = with self; [];
725 725 src = fetchurl {
726 726 url = "https://pypi.python.org/packages/94/4a/db842e7a0545de1cdb0439bb80e6e42dfe82aaeaadd4072f2263a4fbed23/funcsigs-1.0.2.tar.gz";
727 727 md5 = "7e583285b1fb8a76305d6d68f4ccc14e";
728 728 };
729 729 meta = {
730 730 license = [ { fullName = "ASL"; } pkgs.lib.licenses.asl20 ];
731 731 };
732 732 };
733 733 functools32 = super.buildPythonPackage {
734 734 name = "functools32-3.2.3.post2";
735 735 buildInputs = with self; [];
736 736 doCheck = false;
737 737 propagatedBuildInputs = with self; [];
738 738 src = fetchurl {
739 739 url = "https://pypi.python.org/packages/5e/1a/0aa2c8195a204a9f51284018562dea77e25511f02fe924fac202fc012172/functools32-3.2.3-2.zip";
740 740 md5 = "d55232eb132ec779e6893c902a0bc5ad";
741 741 };
742 742 meta = {
743 743 license = [ pkgs.lib.licenses.psfl ];
744 744 };
745 745 };
746 746 future = super.buildPythonPackage {
747 747 name = "future-0.14.3";
748 748 buildInputs = with self; [];
749 749 doCheck = false;
750 750 propagatedBuildInputs = with self; [];
751 751 src = fetchurl {
752 752 url = "https://pypi.python.org/packages/83/80/8ef3a11a15f8eaafafa0937b20c1b3f73527e69ab6b3fa1cf94a5a96aabb/future-0.14.3.tar.gz";
753 753 md5 = "e94079b0bd1fc054929e8769fc0f6083";
754 754 };
755 755 meta = {
756 756 license = [ { fullName = "OSI Approved"; } pkgs.lib.licenses.mit ];
757 757 };
758 758 };
759 759 futures = super.buildPythonPackage {
760 760 name = "futures-3.0.2";
761 761 buildInputs = with self; [];
762 762 doCheck = false;
763 763 propagatedBuildInputs = with self; [];
764 764 src = fetchurl {
765 765 url = "https://pypi.python.org/packages/f8/e7/fc0fcbeb9193ba2d4de00b065e7fd5aecd0679e93ce95a07322b2b1434f4/futures-3.0.2.tar.gz";
766 766 md5 = "42aaf1e4de48d6e871d77dc1f9d96d5a";
767 767 };
768 768 meta = {
769 769 license = [ pkgs.lib.licenses.bsdOriginal ];
770 770 };
771 771 };
772 772 gevent = super.buildPythonPackage {
773 773 name = "gevent-1.2.2";
774 774 buildInputs = with self; [];
775 775 doCheck = false;
776 776 propagatedBuildInputs = with self; [greenlet];
777 777 src = fetchurl {
778 778 url = "https://pypi.python.org/packages/1b/92/b111f76e54d2be11375b47b213b56687214f258fd9dae703546d30b837be/gevent-1.2.2.tar.gz";
779 779 md5 = "7f0baf355384fe5ff2ecf66853422554";
780 780 };
781 781 meta = {
782 782 license = [ pkgs.lib.licenses.mit ];
783 783 };
784 784 };
785 785 gnureadline = super.buildPythonPackage {
786 786 name = "gnureadline-6.3.3";
787 787 buildInputs = with self; [];
788 788 doCheck = false;
789 789 propagatedBuildInputs = with self; [];
790 790 src = fetchurl {
791 791 url = "https://pypi.python.org/packages/3a/ee/2c3f568b0a74974791ac590ec742ef6133e2fbd287a074ba72a53fa5e97c/gnureadline-6.3.3.tar.gz";
792 792 md5 = "c4af83c9a3fbeac8f2da9b5a7c60e51c";
793 793 };
794 794 meta = {
795 795 license = [ pkgs.lib.licenses.gpl1 ];
796 796 };
797 797 };
798 798 gprof2dot = super.buildPythonPackage {
799 799 name = "gprof2dot-2016.10.13";
800 800 buildInputs = with self; [];
801 801 doCheck = false;
802 802 propagatedBuildInputs = with self; [];
803 803 src = fetchurl {
804 804 url = "https://pypi.python.org/packages/a0/e0/73c71baed306f0402a00a94ffc7b2be94ad1296dfcb8b46912655b93154c/gprof2dot-2016.10.13.tar.gz";
805 805 md5 = "0125401f15fd2afe1df686a76c64a4fd";
806 806 };
807 807 meta = {
808 808 license = [ { fullName = "LGPL"; } ];
809 809 };
810 810 };
811 811 graphviz = super.buildPythonPackage {
812 812 name = "graphviz-0.8";
813 813 buildInputs = with self; [];
814 814 doCheck = false;
815 815 propagatedBuildInputs = with self; [];
816 816 src = fetchurl {
817 817 url = "https://pypi.python.org/packages/da/84/0e997520323d6b01124eb01c68d5c101814d0aab53083cd62bd75a90f70b/graphviz-0.8.zip";
818 818 md5 = "9486a885360a5ee54a81eb2950470c71";
819 819 };
820 820 meta = {
821 821 license = [ pkgs.lib.licenses.mit ];
822 822 };
823 823 };
824 824 greenlet = super.buildPythonPackage {
825 825 name = "greenlet-0.4.12";
826 826 buildInputs = with self; [];
827 827 doCheck = false;
828 828 propagatedBuildInputs = with self; [];
829 829 src = fetchurl {
830 830 url = "https://pypi.python.org/packages/be/76/82af375d98724054b7e273b5d9369346937324f9bcc20980b45b068ef0b0/greenlet-0.4.12.tar.gz";
831 831 md5 = "e8637647d58a26c4a1f51ca393e53c00";
832 832 };
833 833 meta = {
834 834 license = [ pkgs.lib.licenses.mit ];
835 835 };
836 836 };
837 837 gunicorn = super.buildPythonPackage {
838 838 name = "gunicorn-19.7.1";
839 839 buildInputs = with self; [];
840 840 doCheck = false;
841 841 propagatedBuildInputs = with self; [];
842 842 src = fetchurl {
843 843 url = "https://pypi.python.org/packages/30/3a/10bb213cede0cc4d13ac2263316c872a64bf4c819000c8ccd801f1d5f822/gunicorn-19.7.1.tar.gz";
844 844 md5 = "174d3c3cd670a5be0404d84c484e590c";
845 845 };
846 846 meta = {
847 847 license = [ pkgs.lib.licenses.mit ];
848 848 };
849 849 };
850 850 html5lib = super.buildPythonPackage {
851 851 name = "html5lib-0.9999999";
852 852 buildInputs = with self; [];
853 853 doCheck = false;
854 854 propagatedBuildInputs = with self; [six];
855 855 src = fetchurl {
856 856 url = "https://pypi.python.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz";
857 857 md5 = "ef43cb05e9e799f25d65d1135838a96f";
858 858 };
859 859 meta = {
860 860 license = [ pkgs.lib.licenses.mit ];
861 861 };
862 862 };
863 863 hupper = super.buildPythonPackage {
864 864 name = "hupper-1.0";
865 865 buildInputs = with self; [];
866 866 doCheck = false;
867 867 propagatedBuildInputs = with self; [];
868 868 src = fetchurl {
869 869 url = "https://pypi.python.org/packages/2e/07/df892c564dc09bb3cf6f6deb976c26adf9117db75ba218cb4353dbc9d826/hupper-1.0.tar.gz";
870 870 md5 = "26e77da7d5ac5858f59af050d1a6eb5a";
871 871 };
872 872 meta = {
873 873 license = [ pkgs.lib.licenses.mit ];
874 874 };
875 875 };
876 876 infrae.cache = super.buildPythonPackage {
877 877 name = "infrae.cache-1.0.1";
878 878 buildInputs = with self; [];
879 879 doCheck = false;
880 880 propagatedBuildInputs = with self; [Beaker repoze.lru];
881 881 src = fetchurl {
882 882 url = "https://pypi.python.org/packages/bb/f0/e7d5e984cf6592fd2807dc7bc44a93f9d18e04e6a61f87fdfb2622422d74/infrae.cache-1.0.1.tar.gz";
883 883 md5 = "b09076a766747e6ed2a755cc62088e32";
884 884 };
885 885 meta = {
886 886 license = [ pkgs.lib.licenses.zpt21 ];
887 887 };
888 888 };
889 889 invoke = super.buildPythonPackage {
890 890 name = "invoke-0.13.0";
891 891 buildInputs = with self; [];
892 892 doCheck = false;
893 893 propagatedBuildInputs = with self; [];
894 894 src = fetchurl {
895 895 url = "https://pypi.python.org/packages/47/bf/d07ef52fa1ac645468858bbac7cb95b246a972a045e821493d17d89c81be/invoke-0.13.0.tar.gz";
896 896 md5 = "c0d1ed4bfb34eaab551662d8cfee6540";
897 897 };
898 898 meta = {
899 899 license = [ pkgs.lib.licenses.bsdOriginal ];
900 900 };
901 901 };
902 902 ipaddress = super.buildPythonPackage {
903 903 name = "ipaddress-1.0.18";
904 904 buildInputs = with self; [];
905 905 doCheck = false;
906 906 propagatedBuildInputs = with self; [];
907 907 src = fetchurl {
908 908 url = "https://pypi.python.org/packages/4e/13/774faf38b445d0b3a844b65747175b2e0500164b7c28d78e34987a5bfe06/ipaddress-1.0.18.tar.gz";
909 909 md5 = "310c2dfd64eb6f0df44aa8c59f2334a7";
910 910 };
911 911 meta = {
912 912 license = [ pkgs.lib.licenses.psfl ];
913 913 };
914 914 };
915 915 ipdb = super.buildPythonPackage {
916 916 name = "ipdb-0.10.3";
917 917 buildInputs = with self; [];
918 918 doCheck = false;
919 919 propagatedBuildInputs = with self; [setuptools ipython];
920 920 src = fetchurl {
921 921 url = "https://pypi.python.org/packages/ad/cc/0e7298e1fbf2efd52667c9354a12aa69fb6f796ce230cca03525051718ef/ipdb-0.10.3.tar.gz";
922 922 md5 = "def1f6ac075d54bdee07e6501263d4fa";
923 923 };
924 924 meta = {
925 925 license = [ pkgs.lib.licenses.bsdOriginal ];
926 926 };
927 927 };
928 928 ipython = super.buildPythonPackage {
929 929 name = "ipython-5.1.0";
930 930 buildInputs = with self; [];
931 931 doCheck = false;
932 932 propagatedBuildInputs = with self; [setuptools decorator pickleshare simplegeneric traitlets prompt-toolkit Pygments pexpect backports.shutil-get-terminal-size pathlib2 pexpect];
933 933 src = fetchurl {
934 934 url = "https://pypi.python.org/packages/89/63/a9292f7cd9d0090a0f995e1167f3f17d5889dcbc9a175261719c513b9848/ipython-5.1.0.tar.gz";
935 935 md5 = "47c8122420f65b58784cb4b9b4af35e3";
936 936 };
937 937 meta = {
938 938 license = [ pkgs.lib.licenses.bsdOriginal ];
939 939 };
940 940 };
941 941 ipython-genutils = super.buildPythonPackage {
942 942 name = "ipython-genutils-0.2.0";
943 943 buildInputs = with self; [];
944 944 doCheck = false;
945 945 propagatedBuildInputs = with self; [];
946 946 src = fetchurl {
947 947 url = "https://pypi.python.org/packages/e8/69/fbeffffc05236398ebfcfb512b6d2511c622871dca1746361006da310399/ipython_genutils-0.2.0.tar.gz";
948 948 md5 = "5a4f9781f78466da0ea1a648f3e1f79f";
949 949 };
950 950 meta = {
951 951 license = [ pkgs.lib.licenses.bsdOriginal ];
952 952 };
953 953 };
954 954 iso8601 = super.buildPythonPackage {
955 955 name = "iso8601-0.1.11";
956 956 buildInputs = with self; [];
957 957 doCheck = false;
958 958 propagatedBuildInputs = with self; [];
959 959 src = fetchurl {
960 960 url = "https://pypi.python.org/packages/c0/75/c9209ee4d1b5975eb8c2cba4428bde6b61bd55664a98290dd015cdb18e98/iso8601-0.1.11.tar.gz";
961 961 md5 = "b06d11cd14a64096f907086044f0fe38";
962 962 };
963 963 meta = {
964 964 license = [ pkgs.lib.licenses.mit ];
965 965 };
966 966 };
967 967 itsdangerous = super.buildPythonPackage {
968 968 name = "itsdangerous-0.24";
969 969 buildInputs = with self; [];
970 970 doCheck = false;
971 971 propagatedBuildInputs = with self; [];
972 972 src = fetchurl {
973 973 url = "https://pypi.python.org/packages/dc/b4/a60bcdba945c00f6d608d8975131ab3f25b22f2bcfe1dab221165194b2d4/itsdangerous-0.24.tar.gz";
974 974 md5 = "a3d55aa79369aef5345c036a8a26307f";
975 975 };
976 976 meta = {
977 977 license = [ pkgs.lib.licenses.bsdOriginal ];
978 978 };
979 979 };
980 980 jsonschema = super.buildPythonPackage {
981 981 name = "jsonschema-2.6.0";
982 982 buildInputs = with self; [];
983 983 doCheck = false;
984 984 propagatedBuildInputs = with self; [functools32];
985 985 src = fetchurl {
986 986 url = "https://pypi.python.org/packages/58/b9/171dbb07e18c6346090a37f03c7e74410a1a56123f847efed59af260a298/jsonschema-2.6.0.tar.gz";
987 987 md5 = "50c6b69a373a8b55ff1e0ec6e78f13f4";
988 988 };
989 989 meta = {
990 990 license = [ pkgs.lib.licenses.mit ];
991 991 };
992 992 };
993 993 jupyter-client = super.buildPythonPackage {
994 994 name = "jupyter-client-5.0.0";
995 995 buildInputs = with self; [];
996 996 doCheck = false;
997 997 propagatedBuildInputs = with self; [traitlets jupyter-core pyzmq python-dateutil];
998 998 src = fetchurl {
999 999 url = "https://pypi.python.org/packages/e5/6f/65412ed462202b90134b7e761b0b7e7f949e07a549c1755475333727b3d0/jupyter_client-5.0.0.tar.gz";
1000 1000 md5 = "1acd331b5c9fb4d79dae9939e79f2426";
1001 1001 };
1002 1002 meta = {
1003 1003 license = [ pkgs.lib.licenses.bsdOriginal ];
1004 1004 };
1005 1005 };
1006 1006 jupyter-core = super.buildPythonPackage {
1007 1007 name = "jupyter-core-4.3.0";
1008 1008 buildInputs = with self; [];
1009 1009 doCheck = false;
1010 1010 propagatedBuildInputs = with self; [traitlets];
1011 1011 src = fetchurl {
1012 1012 url = "https://pypi.python.org/packages/2f/39/5138f975100ce14d150938df48a83cd852a3fd8e24b1244f4113848e69e2/jupyter_core-4.3.0.tar.gz";
1013 1013 md5 = "18819511a809afdeed9a995a9c27bcfb";
1014 1014 };
1015 1015 meta = {
1016 1016 license = [ pkgs.lib.licenses.bsdOriginal ];
1017 1017 };
1018 1018 };
1019 1019 kombu = super.buildPythonPackage {
1020 1020 name = "kombu-1.5.1";
1021 1021 buildInputs = with self; [];
1022 1022 doCheck = false;
1023 1023 propagatedBuildInputs = with self; [anyjson amqplib];
1024 1024 src = fetchurl {
1025 1025 url = "https://pypi.python.org/packages/19/53/74bf2a624644b45f0850a638752514fc10a8e1cbd738f10804951a6df3f5/kombu-1.5.1.tar.gz";
1026 1026 md5 = "50662f3c7e9395b3d0721fb75d100b63";
1027 1027 };
1028 1028 meta = {
1029 1029 license = [ pkgs.lib.licenses.bsdOriginal ];
1030 1030 };
1031 1031 };
1032 1032 lxml = super.buildPythonPackage {
1033 1033 name = "lxml-3.7.3";
1034 1034 buildInputs = with self; [];
1035 1035 doCheck = false;
1036 1036 propagatedBuildInputs = with self; [];
1037 1037 src = fetchurl {
1038 1038 url = "https://pypi.python.org/packages/39/e8/a8e0b1fa65dd021d48fe21464f71783655f39a41f218293c1c590d54eb82/lxml-3.7.3.tar.gz";
1039 1039 md5 = "075692ce442e69bbd604d44e21c02753";
1040 1040 };
1041 1041 meta = {
1042 1042 license = [ pkgs.lib.licenses.bsdOriginal ];
1043 1043 };
1044 1044 };
1045 1045 meld3 = super.buildPythonPackage {
1046 1046 name = "meld3-1.0.2";
1047 1047 buildInputs = with self; [];
1048 1048 doCheck = false;
1049 1049 propagatedBuildInputs = with self; [];
1050 1050 src = fetchurl {
1051 1051 url = "https://pypi.python.org/packages/45/a0/317c6422b26c12fe0161e936fc35f36552069ba8e6f7ecbd99bbffe32a5f/meld3-1.0.2.tar.gz";
1052 1052 md5 = "3ccc78cd79cffd63a751ad7684c02c91";
1053 1053 };
1054 1054 meta = {
1055 1055 license = [ { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1056 1056 };
1057 1057 };
1058 1058 mistune = super.buildPythonPackage {
1059 1059 name = "mistune-0.7.4";
1060 1060 buildInputs = with self; [];
1061 1061 doCheck = false;
1062 1062 propagatedBuildInputs = with self; [];
1063 1063 src = fetchurl {
1064 1064 url = "https://pypi.python.org/packages/25/a4/12a584c0c59c9fed529f8b3c47ca8217c0cf8bcc5e1089d3256410cfbdbc/mistune-0.7.4.tar.gz";
1065 1065 md5 = "92d01cb717e9e74429e9bde9d29ac43b";
1066 1066 };
1067 1067 meta = {
1068 1068 license = [ pkgs.lib.licenses.bsdOriginal ];
1069 1069 };
1070 1070 };
1071 1071 mock = super.buildPythonPackage {
1072 1072 name = "mock-1.0.1";
1073 1073 buildInputs = with self; [];
1074 1074 doCheck = false;
1075 1075 propagatedBuildInputs = with self; [];
1076 1076 src = fetchurl {
1077 1077 url = "https://pypi.python.org/packages/15/45/30273ee91feb60dabb8fbb2da7868520525f02cf910279b3047182feed80/mock-1.0.1.zip";
1078 1078 md5 = "869f08d003c289a97c1a6610faf5e913";
1079 1079 };
1080 1080 meta = {
1081 1081 license = [ pkgs.lib.licenses.bsdOriginal ];
1082 1082 };
1083 1083 };
1084 1084 msgpack-python = super.buildPythonPackage {
1085 1085 name = "msgpack-python-0.4.8";
1086 1086 buildInputs = with self; [];
1087 1087 doCheck = false;
1088 1088 propagatedBuildInputs = with self; [];
1089 1089 src = fetchurl {
1090 1090 url = "https://pypi.python.org/packages/21/27/8a1d82041c7a2a51fcc73675875a5f9ea06c2663e02fcfeb708be1d081a0/msgpack-python-0.4.8.tar.gz";
1091 1091 md5 = "dcd854fb41ee7584ebbf35e049e6be98";
1092 1092 };
1093 1093 meta = {
1094 1094 license = [ pkgs.lib.licenses.asl20 ];
1095 1095 };
1096 1096 };
1097 1097 nbconvert = super.buildPythonPackage {
1098 1098 name = "nbconvert-5.1.1";
1099 1099 buildInputs = with self; [];
1100 1100 doCheck = false;
1101 1101 propagatedBuildInputs = with self; [mistune Jinja2 Pygments traitlets jupyter-core nbformat entrypoints bleach pandocfilters testpath];
1102 1102 src = fetchurl {
1103 1103 url = "https://pypi.python.org/packages/95/58/df1c91f1658ee5df19097f915a1e71c91fc824a708d82d2b2e35f8b80e9a/nbconvert-5.1.1.tar.gz";
1104 1104 md5 = "d0263fb03a44db2f94eea09a608ed813";
1105 1105 };
1106 1106 meta = {
1107 1107 license = [ pkgs.lib.licenses.bsdOriginal ];
1108 1108 };
1109 1109 };
1110 1110 nbformat = super.buildPythonPackage {
1111 1111 name = "nbformat-4.3.0";
1112 1112 buildInputs = with self; [];
1113 1113 doCheck = false;
1114 1114 propagatedBuildInputs = with self; [ipython-genutils traitlets jsonschema jupyter-core];
1115 1115 src = fetchurl {
1116 1116 url = "https://pypi.python.org/packages/f9/c5/89df4abf906f766727f976e170caa85b4f1c1d1feb1f45d716016e68e19f/nbformat-4.3.0.tar.gz";
1117 1117 md5 = "9a00d20425914cd5ba5f97769d9963ca";
1118 1118 };
1119 1119 meta = {
1120 1120 license = [ pkgs.lib.licenses.bsdOriginal ];
1121 1121 };
1122 1122 };
1123 1123 nose = super.buildPythonPackage {
1124 1124 name = "nose-1.3.6";
1125 1125 buildInputs = with self; [];
1126 1126 doCheck = false;
1127 1127 propagatedBuildInputs = with self; [];
1128 1128 src = fetchurl {
1129 1129 url = "https://pypi.python.org/packages/70/c7/469e68148d17a0d3db5ed49150242fd70a74a8147b8f3f8b87776e028d99/nose-1.3.6.tar.gz";
1130 1130 md5 = "0ca546d81ca8309080fc80cb389e7a16";
1131 1131 };
1132 1132 meta = {
1133 1133 license = [ { fullName = "GNU Library or Lesser General Public License (LGPL)"; } { fullName = "GNU LGPL"; } ];
1134 1134 };
1135 1135 };
1136 1136 objgraph = super.buildPythonPackage {
1137 1137 name = "objgraph-3.1.0";
1138 1138 buildInputs = with self; [];
1139 1139 doCheck = false;
1140 1140 propagatedBuildInputs = with self; [graphviz];
1141 1141 src = fetchurl {
1142 1142 url = "https://pypi.python.org/packages/f4/b3/082e54e62094cb2ec84f8d5a49e0142cef99016491cecba83309cff920ae/objgraph-3.1.0.tar.gz";
1143 1143 md5 = "eddbd96039796bfbd13eee403701e64a";
1144 1144 };
1145 1145 meta = {
1146 1146 license = [ pkgs.lib.licenses.mit ];
1147 1147 };
1148 1148 };
1149 1149 packaging = super.buildPythonPackage {
1150 1150 name = "packaging-15.2";
1151 1151 buildInputs = with self; [];
1152 1152 doCheck = false;
1153 1153 propagatedBuildInputs = with self; [];
1154 1154 src = fetchurl {
1155 1155 url = "https://pypi.python.org/packages/24/c4/185da1304f07047dc9e0c46c31db75c0351bd73458ac3efad7da3dbcfbe1/packaging-15.2.tar.gz";
1156 1156 md5 = "c16093476f6ced42128bf610e5db3784";
1157 1157 };
1158 1158 meta = {
1159 1159 license = [ pkgs.lib.licenses.asl20 ];
1160 1160 };
1161 1161 };
1162 1162 pandocfilters = super.buildPythonPackage {
1163 1163 name = "pandocfilters-1.4.1";
1164 1164 buildInputs = with self; [];
1165 1165 doCheck = false;
1166 1166 propagatedBuildInputs = with self; [];
1167 1167 src = fetchurl {
1168 1168 url = "https://pypi.python.org/packages/e3/1f/21d1b7e8ca571e80b796c758d361fdf5554335ff138158654684bc5401d8/pandocfilters-1.4.1.tar.gz";
1169 1169 md5 = "7680d9f9ec07397dd17f380ee3818b9d";
1170 1170 };
1171 1171 meta = {
1172 1172 license = [ pkgs.lib.licenses.bsdOriginal ];
1173 1173 };
1174 1174 };
1175 paramiko = super.buildPythonPackage {
1176 name = "paramiko-1.15.1";
1177 buildInputs = with self; [];
1178 doCheck = false;
1179 propagatedBuildInputs = with self; [pycrypto ecdsa];
1180 src = fetchurl {
1181 url = "https://pypi.python.org/packages/04/2b/a22d2a560c1951abbbf95a0628e245945565f70dc082d9e784666887222c/paramiko-1.15.1.tar.gz";
1182 md5 = "48c274c3f9b1282932567b21f6acf3b5";
1183 };
1184 meta = {
1185 license = [ { fullName = "LGPL"; } { fullName = "GNU Library or Lesser General Public License (LGPL)"; } ];
1186 };
1187 };
1188 1175 pathlib2 = super.buildPythonPackage {
1189 1176 name = "pathlib2-2.3.0";
1190 1177 buildInputs = with self; [];
1191 1178 doCheck = false;
1192 1179 propagatedBuildInputs = with self; [six scandir];
1193 1180 src = fetchurl {
1194 1181 url = "https://pypi.python.org/packages/a1/14/df0deb867c2733f7d857523c10942b3d6612a1b222502fdffa9439943dfb/pathlib2-2.3.0.tar.gz";
1195 1182 md5 = "89c90409d11fd5947966b6a30a47d18c";
1196 1183 };
1197 1184 meta = {
1198 1185 license = [ pkgs.lib.licenses.mit ];
1199 1186 };
1200 1187 };
1201 1188 peppercorn = super.buildPythonPackage {
1202 1189 name = "peppercorn-0.5";
1203 1190 buildInputs = with self; [];
1204 1191 doCheck = false;
1205 1192 propagatedBuildInputs = with self; [];
1206 1193 src = fetchurl {
1207 1194 url = "https://pypi.python.org/packages/45/ec/a62ec317d1324a01567c5221b420742f094f05ee48097e5157d32be3755c/peppercorn-0.5.tar.gz";
1208 1195 md5 = "f08efbca5790019ab45d76b7244abd40";
1209 1196 };
1210 1197 meta = {
1211 1198 license = [ { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1212 1199 };
1213 1200 };
1214 1201 pexpect = super.buildPythonPackage {
1215 1202 name = "pexpect-4.2.1";
1216 1203 buildInputs = with self; [];
1217 1204 doCheck = false;
1218 1205 propagatedBuildInputs = with self; [ptyprocess];
1219 1206 src = fetchurl {
1220 1207 url = "https://pypi.python.org/packages/e8/13/d0b0599099d6cd23663043a2a0bb7c61e58c6ba359b2656e6fb000ef5b98/pexpect-4.2.1.tar.gz";
1221 1208 md5 = "3694410001a99dff83f0b500a1ca1c95";
1222 1209 };
1223 1210 meta = {
1224 1211 license = [ pkgs.lib.licenses.isc { fullName = "ISC License (ISCL)"; } ];
1225 1212 };
1226 1213 };
1227 1214 pickleshare = super.buildPythonPackage {
1228 1215 name = "pickleshare-0.7.4";
1229 1216 buildInputs = with self; [];
1230 1217 doCheck = false;
1231 1218 propagatedBuildInputs = with self; [pathlib2];
1232 1219 src = fetchurl {
1233 1220 url = "https://pypi.python.org/packages/69/fe/dd137d84daa0fd13a709e448138e310d9ea93070620c9db5454e234af525/pickleshare-0.7.4.tar.gz";
1234 1221 md5 = "6a9e5dd8dfc023031f6b7b3f824cab12";
1235 1222 };
1236 1223 meta = {
1237 1224 license = [ pkgs.lib.licenses.mit ];
1238 1225 };
1239 1226 };
1240 1227 plaster = super.buildPythonPackage {
1241 1228 name = "plaster-0.5";
1242 1229 buildInputs = with self; [];
1243 1230 doCheck = false;
1244 1231 propagatedBuildInputs = with self; [setuptools];
1245 1232 src = fetchurl {
1246 1233 url = "https://pypi.python.org/packages/99/b3/d7ca1fe31d2b56dba68a238721fda6820770f9c2a3de17a582d4b5b2edcc/plaster-0.5.tar.gz";
1247 1234 md5 = "c59345a67a860cfcaa1bd6a81451399d";
1248 1235 };
1249 1236 meta = {
1250 1237 license = [ pkgs.lib.licenses.mit ];
1251 1238 };
1252 1239 };
1253 1240 plaster-pastedeploy = super.buildPythonPackage {
1254 1241 name = "plaster-pastedeploy-0.4.1";
1255 1242 buildInputs = with self; [];
1256 1243 doCheck = false;
1257 1244 propagatedBuildInputs = with self; [PasteDeploy plaster];
1258 1245 src = fetchurl {
1259 1246 url = "https://pypi.python.org/packages/9d/6e/f8be01ed41c94e6c54ac97cf2eb142a702aae0c8cce31c846f785e525b40/plaster_pastedeploy-0.4.1.tar.gz";
1260 1247 md5 = "f48d5344b922e56c4978eebf1cd2e0d3";
1261 1248 };
1262 1249 meta = {
1263 1250 license = [ pkgs.lib.licenses.mit ];
1264 1251 };
1265 1252 };
1266 1253 prompt-toolkit = super.buildPythonPackage {
1267 1254 name = "prompt-toolkit-1.0.14";
1268 1255 buildInputs = with self; [];
1269 1256 doCheck = false;
1270 1257 propagatedBuildInputs = with self; [six wcwidth];
1271 1258 src = fetchurl {
1272 1259 url = "https://pypi.python.org/packages/55/56/8c39509b614bda53e638b7500f12577d663ac1b868aef53426fc6a26c3f5/prompt_toolkit-1.0.14.tar.gz";
1273 1260 md5 = "f24061ae133ed32c6b764e92bd48c496";
1274 1261 };
1275 1262 meta = {
1276 1263 license = [ pkgs.lib.licenses.bsdOriginal ];
1277 1264 };
1278 1265 };
1279 1266 psutil = super.buildPythonPackage {
1280 1267 name = "psutil-4.3.1";
1281 1268 buildInputs = with self; [];
1282 1269 doCheck = false;
1283 1270 propagatedBuildInputs = with self; [];
1284 1271 src = fetchurl {
1285 1272 url = "https://pypi.python.org/packages/78/cc/f267a1371f229bf16db6a4e604428c3b032b823b83155bd33cef45e49a53/psutil-4.3.1.tar.gz";
1286 1273 md5 = "199a366dba829c88bddaf5b41d19ddc0";
1287 1274 };
1288 1275 meta = {
1289 1276 license = [ pkgs.lib.licenses.bsdOriginal ];
1290 1277 };
1291 1278 };
1292 1279 psycopg2 = super.buildPythonPackage {
1293 1280 name = "psycopg2-2.7.1";
1294 1281 buildInputs = with self; [];
1295 1282 doCheck = false;
1296 1283 propagatedBuildInputs = with self; [];
1297 1284 src = fetchurl {
1298 1285 url = "https://pypi.python.org/packages/f8/e9/5793369ce8a41bf5467623ded8d59a434dfef9c136351aca4e70c2657ba0/psycopg2-2.7.1.tar.gz";
1299 1286 md5 = "67848ac33af88336046802f6ef7081f3";
1300 1287 };
1301 1288 meta = {
1302 1289 license = [ pkgs.lib.licenses.zpt21 { fullName = "GNU Library or Lesser General Public License (LGPL)"; } { fullName = "LGPL with exceptions or ZPL"; } ];
1303 1290 };
1304 1291 };
1305 1292 ptyprocess = super.buildPythonPackage {
1306 1293 name = "ptyprocess-0.5.2";
1307 1294 buildInputs = with self; [];
1308 1295 doCheck = false;
1309 1296 propagatedBuildInputs = with self; [];
1310 1297 src = fetchurl {
1311 1298 url = "https://pypi.python.org/packages/51/83/5d07dc35534640b06f9d9f1a1d2bc2513fb9cc7595a1b0e28ae5477056ce/ptyprocess-0.5.2.tar.gz";
1312 1299 md5 = "d3b8febae1b8c53b054bd818d0bb8665";
1313 1300 };
1314 1301 meta = {
1315 1302 license = [ ];
1316 1303 };
1317 1304 };
1318 1305 py = super.buildPythonPackage {
1319 1306 name = "py-1.4.34";
1320 1307 buildInputs = with self; [];
1321 1308 doCheck = false;
1322 1309 propagatedBuildInputs = with self; [];
1323 1310 src = fetchurl {
1324 1311 url = "https://pypi.python.org/packages/68/35/58572278f1c097b403879c1e9369069633d1cbad5239b9057944bb764782/py-1.4.34.tar.gz";
1325 1312 md5 = "d9c3d8f734b0819ff48e355d77bf1730";
1326 1313 };
1327 1314 meta = {
1328 1315 license = [ pkgs.lib.licenses.mit ];
1329 1316 };
1330 1317 };
1331 1318 py-bcrypt = super.buildPythonPackage {
1332 1319 name = "py-bcrypt-0.4";
1333 1320 buildInputs = with self; [];
1334 1321 doCheck = false;
1335 1322 propagatedBuildInputs = with self; [];
1336 1323 src = fetchurl {
1337 1324 url = "https://pypi.python.org/packages/68/b1/1c3068c5c4d2e35c48b38dcc865301ebfdf45f54507086ac65ced1fd3b3d/py-bcrypt-0.4.tar.gz";
1338 1325 md5 = "dd8b367d6b716a2ea2e72392525f4e36";
1339 1326 };
1340 1327 meta = {
1341 1328 license = [ pkgs.lib.licenses.bsdOriginal ];
1342 1329 };
1343 1330 };
1344 1331 py-gfm = super.buildPythonPackage {
1345 1332 name = "py-gfm-0.1.3";
1346 1333 buildInputs = with self; [];
1347 1334 doCheck = false;
1348 1335 propagatedBuildInputs = with self; [setuptools Markdown];
1349 1336 src = fetchurl {
1350 1337 url = "https://code.rhodecode.com/upstream/py-gfm/archive/0d66a19bc16e3d49de273c0f797d4e4781e8c0f2.tar.gz?md5=0d0d5385bfb629eea636a80b9c2bfd16";
1351 1338 md5 = "0d0d5385bfb629eea636a80b9c2bfd16";
1352 1339 };
1353 1340 meta = {
1354 1341 license = [ pkgs.lib.licenses.bsdOriginal ];
1355 1342 };
1356 1343 };
1357 1344 pycrypto = super.buildPythonPackage {
1358 1345 name = "pycrypto-2.6.1";
1359 1346 buildInputs = with self; [];
1360 1347 doCheck = false;
1361 1348 propagatedBuildInputs = with self; [];
1362 1349 src = fetchurl {
1363 1350 url = "https://pypi.python.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz";
1364 1351 md5 = "55a61a054aa66812daf5161a0d5d7eda";
1365 1352 };
1366 1353 meta = {
1367 1354 license = [ pkgs.lib.licenses.publicDomain ];
1368 1355 };
1369 1356 };
1370 1357 pycurl = super.buildPythonPackage {
1371 1358 name = "pycurl-7.19.5";
1372 1359 buildInputs = with self; [];
1373 1360 doCheck = false;
1374 1361 propagatedBuildInputs = with self; [];
1375 1362 src = fetchurl {
1376 1363 url = "https://pypi.python.org/packages/6c/48/13bad289ef6f4869b1d8fc11ae54de8cfb3cc4a2eb9f7419c506f763be46/pycurl-7.19.5.tar.gz";
1377 1364 md5 = "47b4eac84118e2606658122104e62072";
1378 1365 };
1379 1366 meta = {
1380 1367 license = [ pkgs.lib.licenses.mit { fullName = "LGPL/MIT"; } { fullName = "GNU Library or Lesser General Public License (LGPL)"; } ];
1381 1368 };
1382 1369 };
1383 1370 pyflakes = super.buildPythonPackage {
1384 1371 name = "pyflakes-0.8.1";
1385 1372 buildInputs = with self; [];
1386 1373 doCheck = false;
1387 1374 propagatedBuildInputs = with self; [];
1388 1375 src = fetchurl {
1389 1376 url = "https://pypi.python.org/packages/75/22/a90ec0252f4f87f3ffb6336504de71fe16a49d69c4538dae2f12b9360a38/pyflakes-0.8.1.tar.gz";
1390 1377 md5 = "905fe91ad14b912807e8fdc2ac2e2c23";
1391 1378 };
1392 1379 meta = {
1393 1380 license = [ pkgs.lib.licenses.mit ];
1394 1381 };
1395 1382 };
1396 1383 pygments-markdown-lexer = super.buildPythonPackage {
1397 1384 name = "pygments-markdown-lexer-0.1.0.dev39";
1398 1385 buildInputs = with self; [];
1399 1386 doCheck = false;
1400 1387 propagatedBuildInputs = with self; [Pygments];
1401 1388 src = fetchurl {
1402 1389 url = "https://pypi.python.org/packages/c3/12/674cdee66635d638cedb2c5d9c85ce507b7b2f91bdba29e482f1b1160ff6/pygments-markdown-lexer-0.1.0.dev39.zip";
1403 1390 md5 = "6360fe0f6d1f896e35b7a0142ce6459c";
1404 1391 };
1405 1392 meta = {
1406 1393 license = [ pkgs.lib.licenses.asl20 ];
1407 1394 };
1408 1395 };
1409 1396 pyparsing = super.buildPythonPackage {
1410 1397 name = "pyparsing-1.5.7";
1411 1398 buildInputs = with self; [];
1412 1399 doCheck = false;
1413 1400 propagatedBuildInputs = with self; [];
1414 1401 src = fetchurl {
1415 1402 url = "https://pypi.python.org/packages/2e/26/e8fb5b4256a5f5036be7ce115ef8db8d06bc537becfbdc46c6af008314ee/pyparsing-1.5.7.zip";
1416 1403 md5 = "b86854857a368d6ccb4d5b6e76d0637f";
1417 1404 };
1418 1405 meta = {
1419 1406 license = [ pkgs.lib.licenses.mit ];
1420 1407 };
1421 1408 };
1422 1409 pyramid = super.buildPythonPackage {
1423 1410 name = "pyramid-1.9";
1424 1411 buildInputs = with self; [];
1425 1412 doCheck = false;
1426 1413 propagatedBuildInputs = with self; [setuptools WebOb repoze.lru zope.interface zope.deprecation venusian translationstring PasteDeploy plaster plaster-pastedeploy hupper];
1427 1414 src = fetchurl {
1428 1415 url = "https://pypi.python.org/packages/b0/73/715321e129334f3e41430bede877620175a63ed075fd5d1fd2c25b7cb121/pyramid-1.9.tar.gz";
1429 1416 md5 = "aa6c7c568f83151af51eb053ac633bc4";
1430 1417 };
1431 1418 meta = {
1432 1419 license = [ { fullName = "Repoze Public License"; } { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1433 1420 };
1434 1421 };
1435 1422 pyramid-beaker = super.buildPythonPackage {
1436 1423 name = "pyramid-beaker-0.8";
1437 1424 buildInputs = with self; [];
1438 1425 doCheck = false;
1439 1426 propagatedBuildInputs = with self; [pyramid Beaker];
1440 1427 src = fetchurl {
1441 1428 url = "https://pypi.python.org/packages/d9/6e/b85426e00fd3d57f4545f74e1c3828552d8700f13ededeef9233f7bca8be/pyramid_beaker-0.8.tar.gz";
1442 1429 md5 = "22f14be31b06549f80890e2c63a93834";
1443 1430 };
1444 1431 meta = {
1445 1432 license = [ { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1446 1433 };
1447 1434 };
1448 1435 pyramid-debugtoolbar = super.buildPythonPackage {
1449 1436 name = "pyramid-debugtoolbar-4.2.1";
1450 1437 buildInputs = with self; [];
1451 1438 doCheck = false;
1452 1439 propagatedBuildInputs = with self; [pyramid pyramid-mako repoze.lru Pygments ipaddress];
1453 1440 src = fetchurl {
1454 1441 url = "https://pypi.python.org/packages/db/26/94620b7752936e2cd74838263ff366db9b454f7394bfb62d1eb2f84b29c1/pyramid_debugtoolbar-4.2.1.tar.gz";
1455 1442 md5 = "3dfaced2fab1644ff5284017be9d92b9";
1456 1443 };
1457 1444 meta = {
1458 1445 license = [ { fullName = "Repoze Public License"; } pkgs.lib.licenses.bsdOriginal ];
1459 1446 };
1460 1447 };
1461 1448 pyramid-jinja2 = super.buildPythonPackage {
1462 1449 name = "pyramid-jinja2-2.5";
1463 1450 buildInputs = with self; [];
1464 1451 doCheck = false;
1465 1452 propagatedBuildInputs = with self; [pyramid zope.deprecation Jinja2 MarkupSafe];
1466 1453 src = fetchurl {
1467 1454 url = "https://pypi.python.org/packages/a1/80/595e26ffab7deba7208676b6936b7e5a721875710f982e59899013cae1ed/pyramid_jinja2-2.5.tar.gz";
1468 1455 md5 = "07cb6547204ac5e6f0b22a954ccee928";
1469 1456 };
1470 1457 meta = {
1471 1458 license = [ { fullName = "Repoze Public License"; } { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1472 1459 };
1473 1460 };
1474 1461 pyramid-mako = super.buildPythonPackage {
1475 1462 name = "pyramid-mako-1.0.2";
1476 1463 buildInputs = with self; [];
1477 1464 doCheck = false;
1478 1465 propagatedBuildInputs = with self; [pyramid Mako];
1479 1466 src = fetchurl {
1480 1467 url = "https://pypi.python.org/packages/f1/92/7e69bcf09676d286a71cb3bbb887b16595b96f9ba7adbdc239ffdd4b1eb9/pyramid_mako-1.0.2.tar.gz";
1481 1468 md5 = "ee25343a97eb76bd90abdc2a774eb48a";
1482 1469 };
1483 1470 meta = {
1484 1471 license = [ { fullName = "Repoze Public License"; } { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1485 1472 };
1486 1473 };
1487 1474 pysqlite = super.buildPythonPackage {
1488 1475 name = "pysqlite-2.8.3";
1489 1476 buildInputs = with self; [];
1490 1477 doCheck = false;
1491 1478 propagatedBuildInputs = with self; [];
1492 1479 src = fetchurl {
1493 1480 url = "https://pypi.python.org/packages/42/02/981b6703e3c83c5b25a829c6e77aad059f9481b0bbacb47e6e8ca12bd731/pysqlite-2.8.3.tar.gz";
1494 1481 md5 = "033f17b8644577715aee55e8832ac9fc";
1495 1482 };
1496 1483 meta = {
1497 1484 license = [ { fullName = "zlib/libpng License"; } { fullName = "zlib/libpng license"; } ];
1498 1485 };
1499 1486 };
1500 1487 pytest = super.buildPythonPackage {
1501 1488 name = "pytest-3.1.2";
1502 1489 buildInputs = with self; [];
1503 1490 doCheck = false;
1504 1491 propagatedBuildInputs = with self; [py setuptools];
1505 1492 src = fetchurl {
1506 1493 url = "https://pypi.python.org/packages/72/2b/2d3155e01f45a5a04427857352ee88220ee39550b2bc078f9db3190aea46/pytest-3.1.2.tar.gz";
1507 1494 md5 = "c4d179f89043cc925e1c169d03128e02";
1508 1495 };
1509 1496 meta = {
1510 1497 license = [ pkgs.lib.licenses.mit ];
1511 1498 };
1512 1499 };
1513 1500 pytest-catchlog = super.buildPythonPackage {
1514 1501 name = "pytest-catchlog-1.2.2";
1515 1502 buildInputs = with self; [];
1516 1503 doCheck = false;
1517 1504 propagatedBuildInputs = with self; [py pytest];
1518 1505 src = fetchurl {
1519 1506 url = "https://pypi.python.org/packages/f2/2b/2faccdb1a978fab9dd0bf31cca9f6847fbe9184a0bdcc3011ac41dd44191/pytest-catchlog-1.2.2.zip";
1520 1507 md5 = "09d890c54c7456c818102b7ff8c182c8";
1521 1508 };
1522 1509 meta = {
1523 1510 license = [ pkgs.lib.licenses.mit ];
1524 1511 };
1525 1512 };
1526 1513 pytest-cov = super.buildPythonPackage {
1527 1514 name = "pytest-cov-2.5.1";
1528 1515 buildInputs = with self; [];
1529 1516 doCheck = false;
1530 1517 propagatedBuildInputs = with self; [pytest coverage];
1531 1518 src = fetchurl {
1532 1519 url = "https://pypi.python.org/packages/24/b4/7290d65b2f3633db51393bdf8ae66309b37620bc3ec116c5e357e3e37238/pytest-cov-2.5.1.tar.gz";
1533 1520 md5 = "5acf38d4909e19819eb5c1754fbfc0ac";
1534 1521 };
1535 1522 meta = {
1536 1523 license = [ pkgs.lib.licenses.bsdOriginal pkgs.lib.licenses.mit ];
1537 1524 };
1538 1525 };
1539 1526 pytest-profiling = super.buildPythonPackage {
1540 1527 name = "pytest-profiling-1.2.6";
1541 1528 buildInputs = with self; [];
1542 1529 doCheck = false;
1543 1530 propagatedBuildInputs = with self; [six pytest gprof2dot];
1544 1531 src = fetchurl {
1545 1532 url = "https://pypi.python.org/packages/f9/0d/df67fb9ce16c2cef201693da956321b1bccfbf9a4ead39748b9f9d1d74cb/pytest-profiling-1.2.6.tar.gz";
1546 1533 md5 = "50eb4c66c3762a2f1a49669bedc0b894";
1547 1534 };
1548 1535 meta = {
1549 1536 license = [ pkgs.lib.licenses.mit ];
1550 1537 };
1551 1538 };
1552 1539 pytest-runner = super.buildPythonPackage {
1553 1540 name = "pytest-runner-2.11.1";
1554 1541 buildInputs = with self; [];
1555 1542 doCheck = false;
1556 1543 propagatedBuildInputs = with self; [];
1557 1544 src = fetchurl {
1558 1545 url = "https://pypi.python.org/packages/9e/4d/08889e5e27a9f5d6096b9ad257f4dea1faabb03c5ded8f665ead448f5d8a/pytest-runner-2.11.1.tar.gz";
1559 1546 md5 = "bdb73eb18eca2727944a2dcf963c5a81";
1560 1547 };
1561 1548 meta = {
1562 1549 license = [ pkgs.lib.licenses.mit ];
1563 1550 };
1564 1551 };
1565 1552 pytest-sugar = super.buildPythonPackage {
1566 1553 name = "pytest-sugar-0.8.0";
1567 1554 buildInputs = with self; [];
1568 1555 doCheck = false;
1569 1556 propagatedBuildInputs = with self; [pytest termcolor];
1570 1557 src = fetchurl {
1571 1558 url = "https://pypi.python.org/packages/a5/b0/b2773dee078f17773a5bf2dfad49b0be57b6354bbd84bbefe4313e509d87/pytest-sugar-0.8.0.tar.gz";
1572 1559 md5 = "8cafbdad648068e0e44b8fc5f9faae42";
1573 1560 };
1574 1561 meta = {
1575 1562 license = [ pkgs.lib.licenses.bsdOriginal ];
1576 1563 };
1577 1564 };
1578 1565 pytest-timeout = super.buildPythonPackage {
1579 1566 name = "pytest-timeout-1.2.0";
1580 1567 buildInputs = with self; [];
1581 1568 doCheck = false;
1582 1569 propagatedBuildInputs = with self; [pytest];
1583 1570 src = fetchurl {
1584 1571 url = "https://pypi.python.org/packages/cc/b7/b2a61365ea6b6d2e8881360ae7ed8dad0327ad2df89f2f0be4a02304deb2/pytest-timeout-1.2.0.tar.gz";
1585 1572 md5 = "83607d91aa163562c7ee835da57d061d";
1586 1573 };
1587 1574 meta = {
1588 1575 license = [ pkgs.lib.licenses.mit { fullName = "DFSG approved"; } ];
1589 1576 };
1590 1577 };
1591 1578 python-dateutil = super.buildPythonPackage {
1592 1579 name = "python-dateutil-2.1";
1593 1580 buildInputs = with self; [];
1594 1581 doCheck = false;
1595 1582 propagatedBuildInputs = with self; [six];
1596 1583 src = fetchurl {
1597 1584 url = "https://pypi.python.org/packages/65/52/9c18dac21f174ad31b65e22d24297864a954e6fe65876eba3f5773d2da43/python-dateutil-2.1.tar.gz";
1598 1585 md5 = "1534bb15cf311f07afaa3aacba1c028b";
1599 1586 };
1600 1587 meta = {
1601 1588 license = [ { fullName = "Simplified BSD"; } ];
1602 1589 };
1603 1590 };
1604 1591 python-editor = super.buildPythonPackage {
1605 1592 name = "python-editor-1.0.3";
1606 1593 buildInputs = with self; [];
1607 1594 doCheck = false;
1608 1595 propagatedBuildInputs = with self; [];
1609 1596 src = fetchurl {
1610 1597 url = "https://pypi.python.org/packages/65/1e/adf6e000ea5dc909aa420352d6ba37f16434c8a3c2fa030445411a1ed545/python-editor-1.0.3.tar.gz";
1611 1598 md5 = "0aca5f2ef176ce68e98a5b7e31372835";
1612 1599 };
1613 1600 meta = {
1614 1601 license = [ pkgs.lib.licenses.asl20 { fullName = "Apache"; } ];
1615 1602 };
1616 1603 };
1617 1604 python-ldap = super.buildPythonPackage {
1618 1605 name = "python-ldap-2.4.40";
1619 1606 buildInputs = with self; [];
1620 1607 doCheck = false;
1621 1608 propagatedBuildInputs = with self; [setuptools];
1622 1609 src = fetchurl {
1623 1610 url = "https://pypi.python.org/packages/4a/d8/7d70a7469058a3987d224061a81d778951ac2b48220bdcc511e4b1b37176/python-ldap-2.4.40.tar.gz";
1624 1611 md5 = "aea0233f7d39b0c7549fcd310deeb0e5";
1625 1612 };
1626 1613 meta = {
1627 1614 license = [ pkgs.lib.licenses.psfl ];
1628 1615 };
1629 1616 };
1630 1617 python-memcached = super.buildPythonPackage {
1631 1618 name = "python-memcached-1.58";
1632 1619 buildInputs = with self; [];
1633 1620 doCheck = false;
1634 1621 propagatedBuildInputs = with self; [six];
1635 1622 src = fetchurl {
1636 1623 url = "https://pypi.python.org/packages/f7/62/14b2448cfb04427366f24104c9da97cf8ea380d7258a3233f066a951a8d8/python-memcached-1.58.tar.gz";
1637 1624 md5 = "23b258105013d14d899828d334e6b044";
1638 1625 };
1639 1626 meta = {
1640 1627 license = [ pkgs.lib.licenses.psfl ];
1641 1628 };
1642 1629 };
1643 1630 python-pam = super.buildPythonPackage {
1644 1631 name = "python-pam-1.8.2";
1645 1632 buildInputs = with self; [];
1646 1633 doCheck = false;
1647 1634 propagatedBuildInputs = with self; [];
1648 1635 src = fetchurl {
1649 1636 url = "https://pypi.python.org/packages/de/8c/f8f5d38b4f26893af267ea0b39023d4951705ab0413a39e0cf7cf4900505/python-pam-1.8.2.tar.gz";
1650 1637 md5 = "db71b6b999246fb05d78ecfbe166629d";
1651 1638 };
1652 1639 meta = {
1653 1640 license = [ { fullName = "License :: OSI Approved :: MIT License"; } pkgs.lib.licenses.mit ];
1654 1641 };
1655 1642 };
1656 1643 pytz = super.buildPythonPackage {
1657 1644 name = "pytz-2015.4";
1658 1645 buildInputs = with self; [];
1659 1646 doCheck = false;
1660 1647 propagatedBuildInputs = with self; [];
1661 1648 src = fetchurl {
1662 1649 url = "https://pypi.python.org/packages/7e/1a/f43b5c92df7b156822030fed151327ea096bcf417e45acc23bd1df43472f/pytz-2015.4.zip";
1663 1650 md5 = "233f2a2b370d03f9b5911700cc9ebf3c";
1664 1651 };
1665 1652 meta = {
1666 1653 license = [ pkgs.lib.licenses.mit ];
1667 1654 };
1668 1655 };
1669 1656 pyzmq = super.buildPythonPackage {
1670 1657 name = "pyzmq-14.6.0";
1671 1658 buildInputs = with self; [];
1672 1659 doCheck = false;
1673 1660 propagatedBuildInputs = with self; [];
1674 1661 src = fetchurl {
1675 1662 url = "https://pypi.python.org/packages/8a/3b/5463d5a9d712cd8bbdac335daece0d69f6a6792da4e3dd89956c0db4e4e6/pyzmq-14.6.0.tar.gz";
1676 1663 md5 = "395b5de95a931afa5b14c9349a5b8024";
1677 1664 };
1678 1665 meta = {
1679 1666 license = [ pkgs.lib.licenses.bsdOriginal { fullName = "LGPL+BSD"; } { fullName = "GNU Library or Lesser General Public License (LGPL)"; } ];
1680 1667 };
1681 1668 };
1682 1669 recaptcha-client = super.buildPythonPackage {
1683 1670 name = "recaptcha-client-1.0.6";
1684 1671 buildInputs = with self; [];
1685 1672 doCheck = false;
1686 1673 propagatedBuildInputs = with self; [];
1687 1674 src = fetchurl {
1688 1675 url = "https://pypi.python.org/packages/0a/ea/5f2fbbfd894bdac1c68ef8d92019066cfcf9fbff5fe3d728d2b5c25c8db4/recaptcha-client-1.0.6.tar.gz";
1689 1676 md5 = "74228180f7e1fb76c4d7089160b0d919";
1690 1677 };
1691 1678 meta = {
1692 1679 license = [ { fullName = "MIT/X11"; } ];
1693 1680 };
1694 1681 };
1695 1682 repoze.lru = super.buildPythonPackage {
1696 1683 name = "repoze.lru-0.6";
1697 1684 buildInputs = with self; [];
1698 1685 doCheck = false;
1699 1686 propagatedBuildInputs = with self; [];
1700 1687 src = fetchurl {
1701 1688 url = "https://pypi.python.org/packages/6e/1e/aa15cc90217e086dc8769872c8778b409812ff036bf021b15795638939e4/repoze.lru-0.6.tar.gz";
1702 1689 md5 = "2c3b64b17a8e18b405f55d46173e14dd";
1703 1690 };
1704 1691 meta = {
1705 1692 license = [ { fullName = "Repoze Public License"; } { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1706 1693 };
1707 1694 };
1708 1695 requests = super.buildPythonPackage {
1709 1696 name = "requests-2.9.1";
1710 1697 buildInputs = with self; [];
1711 1698 doCheck = false;
1712 1699 propagatedBuildInputs = with self; [];
1713 1700 src = fetchurl {
1714 1701 url = "https://pypi.python.org/packages/f9/6d/07c44fb1ebe04d069459a189e7dab9e4abfe9432adcd4477367c25332748/requests-2.9.1.tar.gz";
1715 1702 md5 = "0b7f480d19012ec52bab78292efd976d";
1716 1703 };
1717 1704 meta = {
1718 1705 license = [ pkgs.lib.licenses.asl20 ];
1719 1706 };
1720 1707 };
1721 1708 rhodecode-enterprise-ce = super.buildPythonPackage {
1722 1709 name = "rhodecode-enterprise-ce-4.9.0";
1723 1710 buildInputs = with self; [pytest py pytest-cov pytest-sugar pytest-runner pytest-catchlog pytest-profiling gprof2dot pytest-timeout mock WebTest cov-core coverage configobj];
1724 1711 doCheck = true;
1725 propagatedBuildInputs = with self; [Babel Beaker FormEncode Mako Markdown MarkupSafe MySQL-python Paste PasteDeploy PasteScript Pygments pygments-markdown-lexer Pylons Routes SQLAlchemy Tempita URLObject WebError WebHelpers WebHelpers2 WebOb WebTest Whoosh alembic amqplib anyjson appenlight-client authomatic cssselect celery channelstream colander decorator deform docutils gevent gunicorn infrae.cache ipython iso8601 kombu lxml msgpack-python nbconvert packaging psycopg2 py-gfm pycrypto pycurl pyparsing pyramid pyramid-debugtoolbar pyramid-mako pyramid-beaker pysqlite python-dateutil python-ldap python-memcached python-pam recaptcha-client repoze.lru requests simplejson subprocess32 waitress zope.cachedescriptors dogpile.cache dogpile.core psutil py-bcrypt];
1712 propagatedBuildInputs = with self; [Babel Beaker FormEncode Mako Markdown MarkupSafe MySQL-python Paste PasteDeploy PasteScript Pygments pygments-markdown-lexer Pylons Routes SQLAlchemy Tempita URLObject WebError WebHelpers WebHelpers2 WebOb WebTest Whoosh alembic amqplib anyjson appenlight-client authomatic cssselect celery channelstream colander decorator deform docutils gevent gunicorn infrae.cache ipython iso8601 kombu lxml msgpack-python nbconvert packaging psycopg2 py-gfm pycrypto pycurl pyparsing pyramid pyramid-debugtoolbar pyramid-mako pyramid-beaker pysqlite python-dateutil python-ldap python-memcached python-pam recaptcha-client repoze.lru requests simplejson sshpubkeys subprocess32 waitress zope.cachedescriptors dogpile.cache dogpile.core psutil py-bcrypt];
1726 1713 src = ./.;
1727 1714 meta = {
1728 1715 license = [ { fullName = "Affero GNU General Public License v3 or later (AGPLv3+)"; } { fullName = "AGPLv3, and Commercial License"; } ];
1729 1716 };
1730 1717 };
1731 1718 rhodecode-tools = super.buildPythonPackage {
1732 1719 name = "rhodecode-tools-0.12.0";
1733 1720 buildInputs = with self; [];
1734 1721 doCheck = false;
1735 1722 propagatedBuildInputs = with self; [click future six Mako MarkupSafe requests elasticsearch elasticsearch-dsl urllib3 Whoosh];
1736 1723 src = fetchurl {
1737 1724 url = "https://code.rhodecode.com/rhodecode-tools-ce/archive/v0.12.0.tar.gz?md5=9ca040356fa7e38d3f64529a4cffdca4";
1738 1725 md5 = "9ca040356fa7e38d3f64529a4cffdca4";
1739 1726 };
1740 1727 meta = {
1741 1728 license = [ { fullName = "AGPLv3 and Proprietary"; } ];
1742 1729 };
1743 1730 };
1744 1731 scandir = super.buildPythonPackage {
1745 1732 name = "scandir-1.5";
1746 1733 buildInputs = with self; [];
1747 1734 doCheck = false;
1748 1735 propagatedBuildInputs = with self; [];
1749 1736 src = fetchurl {
1750 1737 url = "https://pypi.python.org/packages/bd/f4/3143e0289faf0883228017dbc6387a66d0b468df646645e29e1eb89ea10e/scandir-1.5.tar.gz";
1751 1738 md5 = "a2713043de681bba6b084be42e7a8a44";
1752 1739 };
1753 1740 meta = {
1754 1741 license = [ pkgs.lib.licenses.bsdOriginal { fullName = "New BSD License"; } ];
1755 1742 };
1756 1743 };
1757 1744 setproctitle = super.buildPythonPackage {
1758 1745 name = "setproctitle-1.1.8";
1759 1746 buildInputs = with self; [];
1760 1747 doCheck = false;
1761 1748 propagatedBuildInputs = with self; [];
1762 1749 src = fetchurl {
1763 1750 url = "https://pypi.python.org/packages/33/c3/ad367a4f4f1ca90468863ae727ac62f6edb558fc09a003d344a02cfc6ea6/setproctitle-1.1.8.tar.gz";
1764 1751 md5 = "728f4c8c6031bbe56083a48594027edd";
1765 1752 };
1766 1753 meta = {
1767 1754 license = [ pkgs.lib.licenses.bsdOriginal ];
1768 1755 };
1769 1756 };
1770 1757 setuptools = super.buildPythonPackage {
1771 1758 name = "setuptools-30.1.0";
1772 1759 buildInputs = with self; [];
1773 1760 doCheck = false;
1774 1761 propagatedBuildInputs = with self; [];
1775 1762 src = fetchurl {
1776 1763 url = "https://pypi.python.org/packages/1e/43/002c8616db9a3e7be23c2556e39b90a32bb40ba0dc652de1999d5334d372/setuptools-30.1.0.tar.gz";
1777 1764 md5 = "cac497f42e5096ac8df29e38d3f81c3e";
1778 1765 };
1779 1766 meta = {
1780 1767 license = [ pkgs.lib.licenses.mit ];
1781 1768 };
1782 1769 };
1783 1770 setuptools-scm = super.buildPythonPackage {
1784 1771 name = "setuptools-scm-1.15.0";
1785 1772 buildInputs = with self; [];
1786 1773 doCheck = false;
1787 1774 propagatedBuildInputs = with self; [];
1788 1775 src = fetchurl {
1789 1776 url = "https://pypi.python.org/packages/80/b7/31b6ae5fcb188e37f7e31abe75f9be90490a5456a72860fa6e643f8a3cbc/setuptools_scm-1.15.0.tar.gz";
1790 1777 md5 = "b6916c78ed6253d6602444fad4279c5b";
1791 1778 };
1792 1779 meta = {
1793 1780 license = [ pkgs.lib.licenses.mit ];
1794 1781 };
1795 1782 };
1796 1783 simplegeneric = super.buildPythonPackage {
1797 1784 name = "simplegeneric-0.8.1";
1798 1785 buildInputs = with self; [];
1799 1786 doCheck = false;
1800 1787 propagatedBuildInputs = with self; [];
1801 1788 src = fetchurl {
1802 1789 url = "https://pypi.python.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b/simplegeneric-0.8.1.zip";
1803 1790 md5 = "f9c1fab00fd981be588fc32759f474e3";
1804 1791 };
1805 1792 meta = {
1806 1793 license = [ pkgs.lib.licenses.zpt21 ];
1807 1794 };
1808 1795 };
1809 1796 simplejson = super.buildPythonPackage {
1810 1797 name = "simplejson-3.11.1";
1811 1798 buildInputs = with self; [];
1812 1799 doCheck = false;
1813 1800 propagatedBuildInputs = with self; [];
1814 1801 src = fetchurl {
1815 1802 url = "https://pypi.python.org/packages/08/48/c97b668d6da7d7bebe7ea1817a6f76394b0ec959cb04214ca833c34359df/simplejson-3.11.1.tar.gz";
1816 1803 md5 = "6e2f1bd5fb0a926facf5d89d217a7183";
1817 1804 };
1818 1805 meta = {
1819 1806 license = [ { fullName = "Academic Free License (AFL)"; } pkgs.lib.licenses.mit ];
1820 1807 };
1821 1808 };
1822 1809 six = super.buildPythonPackage {
1823 1810 name = "six-1.9.0";
1824 1811 buildInputs = with self; [];
1825 1812 doCheck = false;
1826 1813 propagatedBuildInputs = with self; [];
1827 1814 src = fetchurl {
1828 1815 url = "https://pypi.python.org/packages/16/64/1dc5e5976b17466fd7d712e59cbe9fb1e18bec153109e5ba3ed6c9102f1a/six-1.9.0.tar.gz";
1829 1816 md5 = "476881ef4012262dfc8adc645ee786c4";
1830 1817 };
1831 1818 meta = {
1832 1819 license = [ pkgs.lib.licenses.mit ];
1833 1820 };
1834 1821 };
1822 sshpubkeys = super.buildPythonPackage {
1823 name = "sshpubkeys-2.2.0";
1824 buildInputs = with self; [];
1825 doCheck = false;
1826 propagatedBuildInputs = with self; [pycrypto ecdsa];
1827 src = fetchurl {
1828 url = "https://pypi.python.org/packages/27/da/337fabeb3dca6b62039a93ceaa636f25065e0ae92b575b1235342076cf0a/sshpubkeys-2.2.0.tar.gz";
1829 md5 = "458e45f6b92b1afa84f0ffe1f1c90935";
1830 };
1831 meta = {
1832 license = [ pkgs.lib.licenses.bsdOriginal ];
1833 };
1834 };
1835 1835 subprocess32 = super.buildPythonPackage {
1836 1836 name = "subprocess32-3.2.7";
1837 1837 buildInputs = with self; [];
1838 1838 doCheck = false;
1839 1839 propagatedBuildInputs = with self; [];
1840 1840 src = fetchurl {
1841 1841 url = "https://pypi.python.org/packages/b8/2f/49e53b0d0e94611a2dc624a1ad24d41b6d94d0f1b0a078443407ea2214c2/subprocess32-3.2.7.tar.gz";
1842 1842 md5 = "824c801e479d3e916879aae3e9c15e16";
1843 1843 };
1844 1844 meta = {
1845 1845 license = [ pkgs.lib.licenses.psfl ];
1846 1846 };
1847 1847 };
1848 1848 supervisor = super.buildPythonPackage {
1849 1849 name = "supervisor-3.3.2";
1850 1850 buildInputs = with self; [];
1851 1851 doCheck = false;
1852 1852 propagatedBuildInputs = with self; [meld3];
1853 1853 src = fetchurl {
1854 1854 url = "https://pypi.python.org/packages/7b/17/88adf8cb25f80e2bc0d18e094fcd7ab300632ea00b601cbbbb84c2419eae/supervisor-3.3.2.tar.gz";
1855 1855 md5 = "04766d62864da13d6a12f7429e75314f";
1856 1856 };
1857 1857 meta = {
1858 1858 license = [ { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1859 1859 };
1860 1860 };
1861 1861 termcolor = super.buildPythonPackage {
1862 1862 name = "termcolor-1.1.0";
1863 1863 buildInputs = with self; [];
1864 1864 doCheck = false;
1865 1865 propagatedBuildInputs = with self; [];
1866 1866 src = fetchurl {
1867 1867 url = "https://pypi.python.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz";
1868 1868 md5 = "043e89644f8909d462fbbfa511c768df";
1869 1869 };
1870 1870 meta = {
1871 1871 license = [ pkgs.lib.licenses.mit ];
1872 1872 };
1873 1873 };
1874 1874 testpath = super.buildPythonPackage {
1875 1875 name = "testpath-0.3.1";
1876 1876 buildInputs = with self; [];
1877 1877 doCheck = false;
1878 1878 propagatedBuildInputs = with self; [];
1879 1879 src = fetchurl {
1880 1880 url = "https://pypi.python.org/packages/f4/8b/b71e9ee10e5f751e9d959bc750ab122ba04187f5aa52aabdc4e63b0e31a7/testpath-0.3.1.tar.gz";
1881 1881 md5 = "2cd5ed5522fda781bb497c9d80ae2fc9";
1882 1882 };
1883 1883 meta = {
1884 1884 license = [ pkgs.lib.licenses.mit ];
1885 1885 };
1886 1886 };
1887 1887 traitlets = super.buildPythonPackage {
1888 1888 name = "traitlets-4.3.2";
1889 1889 buildInputs = with self; [];
1890 1890 doCheck = false;
1891 1891 propagatedBuildInputs = with self; [ipython-genutils six decorator enum34];
1892 1892 src = fetchurl {
1893 1893 url = "https://pypi.python.org/packages/a5/98/7f5ef2fe9e9e071813aaf9cb91d1a732e0a68b6c44a32b38cb8e14c3f069/traitlets-4.3.2.tar.gz";
1894 1894 md5 = "3068663f2f38fd939a9eb3a500ccc154";
1895 1895 };
1896 1896 meta = {
1897 1897 license = [ pkgs.lib.licenses.bsdOriginal ];
1898 1898 };
1899 1899 };
1900 1900 transifex-client = super.buildPythonPackage {
1901 1901 name = "transifex-client-0.10";
1902 1902 buildInputs = with self; [];
1903 1903 doCheck = false;
1904 1904 propagatedBuildInputs = with self; [];
1905 1905 src = fetchurl {
1906 1906 url = "https://pypi.python.org/packages/f3/4e/7b925192aee656fb3e04fa6381c8b3dc40198047c3b4a356f6cfd642c809/transifex-client-0.10.tar.gz";
1907 1907 md5 = "5549538d84b8eede6b254cd81ae024fa";
1908 1908 };
1909 1909 meta = {
1910 1910 license = [ pkgs.lib.licenses.gpl2 ];
1911 1911 };
1912 1912 };
1913 1913 translationstring = super.buildPythonPackage {
1914 1914 name = "translationstring-1.3";
1915 1915 buildInputs = with self; [];
1916 1916 doCheck = false;
1917 1917 propagatedBuildInputs = with self; [];
1918 1918 src = fetchurl {
1919 1919 url = "https://pypi.python.org/packages/5e/eb/bee578cc150b44c653b63f5ebe258b5d0d812ddac12497e5f80fcad5d0b4/translationstring-1.3.tar.gz";
1920 1920 md5 = "a4b62e0f3c189c783a1685b3027f7c90";
1921 1921 };
1922 1922 meta = {
1923 1923 license = [ { fullName = "BSD-like (http://repoze.org/license.html)"; } ];
1924 1924 };
1925 1925 };
1926 1926 trollius = super.buildPythonPackage {
1927 1927 name = "trollius-1.0.4";
1928 1928 buildInputs = with self; [];
1929 1929 doCheck = false;
1930 1930 propagatedBuildInputs = with self; [futures];
1931 1931 src = fetchurl {
1932 1932 url = "https://pypi.python.org/packages/aa/e6/4141db437f55e6ee7a3fb69663239e3fde7841a811b4bef293145ad6c836/trollius-1.0.4.tar.gz";
1933 1933 md5 = "3631a464d49d0cbfd30ab2918ef2b783";
1934 1934 };
1935 1935 meta = {
1936 1936 license = [ pkgs.lib.licenses.asl20 ];
1937 1937 };
1938 1938 };
1939 1939 uWSGI = super.buildPythonPackage {
1940 1940 name = "uWSGI-2.0.15";
1941 1941 buildInputs = with self; [];
1942 1942 doCheck = false;
1943 1943 propagatedBuildInputs = with self; [];
1944 1944 src = fetchurl {
1945 1945 url = "https://pypi.python.org/packages/bb/0a/45e5aa80dc135889594bb371c082d20fb7ee7303b174874c996888cc8511/uwsgi-2.0.15.tar.gz";
1946 1946 md5 = "fc50bd9e83b7602fa474b032167010a7";
1947 1947 };
1948 1948 meta = {
1949 1949 license = [ pkgs.lib.licenses.gpl2 ];
1950 1950 };
1951 1951 };
1952 1952 urllib3 = super.buildPythonPackage {
1953 1953 name = "urllib3-1.16";
1954 1954 buildInputs = with self; [];
1955 1955 doCheck = false;
1956 1956 propagatedBuildInputs = with self; [];
1957 1957 src = fetchurl {
1958 1958 url = "https://pypi.python.org/packages/3b/f0/e763169124e3f5db0926bc3dbfcd580a105f9ca44cf5d8e6c7a803c9f6b5/urllib3-1.16.tar.gz";
1959 1959 md5 = "fcaab1c5385c57deeb7053d3d7d81d59";
1960 1960 };
1961 1961 meta = {
1962 1962 license = [ pkgs.lib.licenses.mit ];
1963 1963 };
1964 1964 };
1965 1965 venusian = super.buildPythonPackage {
1966 1966 name = "venusian-1.1.0";
1967 1967 buildInputs = with self; [];
1968 1968 doCheck = false;
1969 1969 propagatedBuildInputs = with self; [];
1970 1970 src = fetchurl {
1971 1971 url = "https://pypi.python.org/packages/38/24/b4b470ab9e0a2e2e9b9030c7735828c8934b4c6b45befd1bb713ec2aeb2d/venusian-1.1.0.tar.gz";
1972 1972 md5 = "56bc5e6756e4bda37bcdb94f74a72b8f";
1973 1973 };
1974 1974 meta = {
1975 1975 license = [ { fullName = "BSD-derived (http://www.repoze.org/LICENSE.txt)"; } ];
1976 1976 };
1977 1977 };
1978 1978 waitress = super.buildPythonPackage {
1979 1979 name = "waitress-1.0.2";
1980 1980 buildInputs = with self; [];
1981 1981 doCheck = false;
1982 1982 propagatedBuildInputs = with self; [];
1983 1983 src = fetchurl {
1984 1984 url = "https://pypi.python.org/packages/cd/f4/400d00863afa1e03618e31fd7e2092479a71b8c9718b00eb1eeb603746c6/waitress-1.0.2.tar.gz";
1985 1985 md5 = "b968f39e95d609f6194c6e50425d4bb7";
1986 1986 };
1987 1987 meta = {
1988 1988 license = [ pkgs.lib.licenses.zpt21 ];
1989 1989 };
1990 1990 };
1991 1991 wcwidth = super.buildPythonPackage {
1992 1992 name = "wcwidth-0.1.7";
1993 1993 buildInputs = with self; [];
1994 1994 doCheck = false;
1995 1995 propagatedBuildInputs = with self; [];
1996 1996 src = fetchurl {
1997 1997 url = "https://pypi.python.org/packages/55/11/e4a2bb08bb450fdbd42cc709dd40de4ed2c472cf0ccb9e64af22279c5495/wcwidth-0.1.7.tar.gz";
1998 1998 md5 = "b3b6a0a08f0c8a34d1de8cf44150a4ad";
1999 1999 };
2000 2000 meta = {
2001 2001 license = [ pkgs.lib.licenses.mit ];
2002 2002 };
2003 2003 };
2004 2004 ws4py = super.buildPythonPackage {
2005 2005 name = "ws4py-0.3.5";
2006 2006 buildInputs = with self; [];
2007 2007 doCheck = false;
2008 2008 propagatedBuildInputs = with self; [];
2009 2009 src = fetchurl {
2010 2010 url = "https://pypi.python.org/packages/b6/4f/34af703be86939629479e74d6e650e39f3bd73b3b09212c34e5125764cbc/ws4py-0.3.5.zip";
2011 2011 md5 = "a261b75c20b980e55ce7451a3576a867";
2012 2012 };
2013 2013 meta = {
2014 2014 license = [ pkgs.lib.licenses.bsdOriginal ];
2015 2015 };
2016 2016 };
2017 2017 wsgiref = super.buildPythonPackage {
2018 2018 name = "wsgiref-0.1.2";
2019 2019 buildInputs = with self; [];
2020 2020 doCheck = false;
2021 2021 propagatedBuildInputs = with self; [];
2022 2022 src = fetchurl {
2023 2023 url = "https://pypi.python.org/packages/41/9e/309259ce8dff8c596e8c26df86dbc4e848b9249fd36797fd60be456f03fc/wsgiref-0.1.2.zip";
2024 2024 md5 = "29b146e6ebd0f9fb119fe321f7bcf6cb";
2025 2025 };
2026 2026 meta = {
2027 2027 license = [ { fullName = "PSF or ZPL"; } ];
2028 2028 };
2029 2029 };
2030 2030 zope.cachedescriptors = super.buildPythonPackage {
2031 2031 name = "zope.cachedescriptors-4.0.0";
2032 2032 buildInputs = with self; [];
2033 2033 doCheck = false;
2034 2034 propagatedBuildInputs = with self; [setuptools];
2035 2035 src = fetchurl {
2036 2036 url = "https://pypi.python.org/packages/40/33/694b6644c37f28553f4b9f20b3c3a20fb709a22574dff20b5bdffb09ecd5/zope.cachedescriptors-4.0.0.tar.gz";
2037 2037 md5 = "8d308de8c936792c8e758058fcb7d0f0";
2038 2038 };
2039 2039 meta = {
2040 2040 license = [ pkgs.lib.licenses.zpt21 ];
2041 2041 };
2042 2042 };
2043 2043 zope.deprecation = super.buildPythonPackage {
2044 2044 name = "zope.deprecation-4.1.2";
2045 2045 buildInputs = with self; [];
2046 2046 doCheck = false;
2047 2047 propagatedBuildInputs = with self; [setuptools];
2048 2048 src = fetchurl {
2049 2049 url = "https://pypi.python.org/packages/c1/d3/3919492d5e57d8dd01b36f30b34fc8404a30577392b1eb817c303499ad20/zope.deprecation-4.1.2.tar.gz";
2050 2050 md5 = "e9a663ded58f4f9f7881beb56cae2782";
2051 2051 };
2052 2052 meta = {
2053 2053 license = [ pkgs.lib.licenses.zpt21 ];
2054 2054 };
2055 2055 };
2056 2056 zope.event = super.buildPythonPackage {
2057 2057 name = "zope.event-4.0.3";
2058 2058 buildInputs = with self; [];
2059 2059 doCheck = false;
2060 2060 propagatedBuildInputs = with self; [setuptools];
2061 2061 src = fetchurl {
2062 2062 url = "https://pypi.python.org/packages/c1/29/91ba884d7d6d96691df592e9e9c2bfa57a47040ec1ff47eff18c85137152/zope.event-4.0.3.tar.gz";
2063 2063 md5 = "9a3780916332b18b8b85f522bcc3e249";
2064 2064 };
2065 2065 meta = {
2066 2066 license = [ pkgs.lib.licenses.zpt21 ];
2067 2067 };
2068 2068 };
2069 2069 zope.interface = super.buildPythonPackage {
2070 2070 name = "zope.interface-4.1.3";
2071 2071 buildInputs = with self; [];
2072 2072 doCheck = false;
2073 2073 propagatedBuildInputs = with self; [setuptools];
2074 2074 src = fetchurl {
2075 2075 url = "https://pypi.python.org/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz";
2076 2076 md5 = "9ae3d24c0c7415deb249dd1a132f0f79";
2077 2077 };
2078 2078 meta = {
2079 2079 license = [ pkgs.lib.licenses.zpt21 ];
2080 2080 };
2081 2081 };
2082 2082
2083 2083 ### Test requirements
2084 2084
2085 2085
2086 2086 }
@@ -1,135 +1,135 b''
1 1 ## core
2 2 setuptools==30.1.0
3 3 setuptools-scm==1.15.0
4 4
5 5 amqplib==1.0.2
6 6 anyjson==0.3.3
7 7 authomatic==0.1.0.post1
8 8 Babel==1.3
9 9 Beaker==1.9.0
10 10 celery==2.2.10
11 11 Chameleon==2.24
12 12 channelstream==0.5.2
13 13 click==5.1
14 14 colander==1.3.3
15 15 configobj==5.0.6
16 16 cssselect==1.0.1
17 17 decorator==4.0.11
18 18 deform==2.0.4
19 19 docutils==0.13.1
20 20 dogpile.cache==0.6.4
21 21 dogpile.core==0.4.1
22 ecdsa==0.11
22 ecdsa==0.13
23 23 FormEncode==1.2.4
24 24 future==0.14.3
25 25 futures==3.0.2
26 26 gnureadline==6.3.3
27 27 infrae.cache==1.0.1
28 28 iso8601==0.1.11
29 29 itsdangerous==0.24
30 30 Jinja2==2.7.3
31 31 kombu==1.5.1
32 32 lxml==3.7.3
33 33 Mako==1.0.6
34 34 Markdown==2.6.8
35 35 MarkupSafe==0.23
36 36 meld3==1.0.2
37 37 msgpack-python==0.4.8
38 38 MySQL-python==1.2.5
39 39 nose==1.3.6
40 40 objgraph==3.1.0
41 41 packaging==15.2
42 paramiko==1.15.1
43 42 Paste==2.0.3
44 43 PasteDeploy==1.5.2
45 44 PasteScript==1.7.5
46 45 pathlib2==2.3.0
47 46 psutil==4.3.1
48 47 psycopg2==2.7.1
49 48 py-bcrypt==0.4
50 49 pycrypto==2.6.1
51 50 pycurl==7.19.5
52 51 pyflakes==0.8.1
53 52 pygments-markdown-lexer==0.1.0.dev39
54 53 Pygments==2.2.0
55 54 pyparsing==1.5.7
56 55 pyramid-beaker==0.8
57 56 pyramid-debugtoolbar==4.2.1
58 57 pyramid-jinja2==2.5
59 58 pyramid-mako==1.0.2
60 59 pyramid==1.9.0
61 60 pysqlite==2.8.3
62 61 python-dateutil==2.1
63 62 python-ldap==2.4.40
64 63 python-memcached==1.58
65 64 python-pam==1.8.2
66 65 pytz==2015.4
67 66 pyzmq==14.6.0
68 67 recaptcha-client==1.0.6
69 68 repoze.lru==0.6
70 69 requests==2.9.1
71 70 Routes==1.13
72 71 setproctitle==1.1.8
73 72 simplejson==3.11.1
74 73 six==1.9.0
75 74 Sphinx==1.2.2
76 75 SQLAlchemy==1.1.11
76 sshpubkeys==2.2.0
77 77 subprocess32==3.2.7
78 78 supervisor==3.3.2
79 79 Tempita==0.5.2
80 80 translationstring==1.3
81 81 trollius==1.0.4
82 82 urllib3==1.16
83 83 URLObject==2.4.0
84 84 venusian==1.1.0
85 85 WebError==0.10.3
86 86 WebHelpers2==2.0
87 87 WebHelpers==1.3
88 88 WebOb==1.7.3
89 89 Whoosh==2.7.4
90 90 wsgiref==0.1.2
91 91 zope.cachedescriptors==4.0.0
92 92 zope.deprecation==4.1.2
93 93 zope.event==4.0.3
94 94 zope.interface==4.1.3
95 95
96 96 ## customized/patched libs
97 97 # our patched version of Pylons==1.0.2
98 98 https://code.rhodecode.com/upstream/pylons/archive/707354ee4261b9c10450404fc9852ccea4fd667d.tar.gz?md5=f26633726fa2cd3a340316ee6a5d218f#egg=Pylons==1.0.2.rhodecode-patch-1
99 99 # not released py-gfm==0.1.3
100 100 https://code.rhodecode.com/upstream/py-gfm/archive/0d66a19bc16e3d49de273c0f797d4e4781e8c0f2.tar.gz?md5=0d0d5385bfb629eea636a80b9c2bfd16#egg=py-gfm==0.1.3.rhodecode-upstream1
101 101
102 102 # IPYTHON RENDERING
103 103 # entrypoints backport, pypi version doesn't support egg installs
104 104 https://code.rhodecode.com/upstream/entrypoints/archive/96e6d645684e1af3d7df5b5272f3fe85a546b233.tar.gz?md5=7db37771aea9ac9fefe093e5d6987313#egg=entrypoints==0.2.2.rhodecode-upstream1
105 105 nbconvert==5.1.1
106 106 nbformat==4.3.0
107 107 jupyter_client==5.0.0
108 108
109 109 ## cli tools
110 110 alembic==0.9.2
111 111 invoke==0.13.0
112 112 bumpversion==0.5.3
113 113 transifex-client==0.10
114 114
115 115 ## http servers
116 116 gevent==1.2.2
117 117 greenlet==0.4.12
118 118 gunicorn==19.7.1
119 119 waitress==1.0.2
120 120 uWSGI==2.0.15
121 121
122 122 ## debug
123 123 ipdb==0.10.3
124 124 ipython==5.1.0
125 125 CProfileV==1.0.7
126 126 bottle==0.12.8
127 127
128 128 ## rhodecode-tools, special case
129 129 https://code.rhodecode.com/rhodecode-tools-ce/archive/v0.12.0.tar.gz?md5=9ca040356fa7e38d3f64529a4cffdca4#egg=rhodecode-tools==0.12.0
130 130
131 131 ## appenlight
132 132 appenlight-client==0.6.21
133 133
134 134 ## test related requirements
135 135 -r requirements_test.txt
@@ -1,63 +1,63 b''
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Copyright (C) 2010-2017 RhodeCode GmbH
4 4 #
5 5 # This program is free software: you can redistribute it and/or modify
6 6 # it under the terms of the GNU Affero General Public License, version 3
7 7 # (only), as published by the Free Software Foundation.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU Affero General Public License
15 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16 #
17 17 # This program is dual-licensed. If you wish to learn more about the
18 18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20 20
21 21 """
22 22
23 23 RhodeCode, a web based repository management software
24 24 versioning implementation: http://www.python.org/dev/peps/pep-0386/
25 25 """
26 26
27 27 import os
28 28 import sys
29 29 import platform
30 30
31 31 VERSION = tuple(open(os.path.join(
32 32 os.path.dirname(__file__), 'VERSION')).read().split('.'))
33 33
34 34 BACKENDS = {
35 35 'hg': 'Mercurial repository',
36 36 'git': 'Git repository',
37 37 'svn': 'Subversion repository',
38 38 }
39 39
40 40 CELERY_ENABLED = False
41 41 CELERY_EAGER = False
42 42
43 43 # link to config for pylons
44 44 CONFIG = {}
45 45
46 46 # Populated with the settings dictionary from application init in
47 47 # rhodecode.conf.environment.load_pyramid_environment
48 48 PYRAMID_SETTINGS = {}
49 49
50 50 # Linked module for extensions
51 51 EXTENSIONS = {}
52 52
53 53 __version__ = ('.'.join((str(each) for each in VERSION[:3])))
54 __dbversion__ = 79 # defines current db version for migrations
54 __dbversion__ = 80 # defines current db version for migrations
55 55 __platform__ = platform.system()
56 56 __license__ = 'AGPLv3, and Commercial License'
57 57 __author__ = 'RhodeCode GmbH'
58 58 __url__ = 'https://code.rhodecode.com'
59 59
60 60 is_windows = __platform__ in ['Windows']
61 61 is_unix = not is_windows
62 62 is_test = False
63 63 disable_error_handler = False
@@ -1,192 +1,206 b''
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Copyright (C) 2016-2017 RhodeCode GmbH
4 4 #
5 5 # This program is free software: you can redistribute it and/or modify
6 6 # it under the terms of the GNU Affero General Public License, version 3
7 7 # (only), as published by the Free Software Foundation.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU Affero General Public License
15 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16 #
17 17 # This program is dual-licensed. If you wish to learn more about the
18 18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20 20
21 21
22 22 from rhodecode.apps.admin.navigation import NavigationRegistry
23 23 from rhodecode.config.routing import ADMIN_PREFIX
24 24 from rhodecode.lib.utils2 import str2bool
25 25
26 26
27 27 def admin_routes(config):
28 28 """
29 29 Admin prefixed routes
30 30 """
31 31
32 32 config.add_route(
33 33 name='admin_audit_logs',
34 34 pattern='/audit_logs')
35 35
36 36 config.add_route(
37 37 name='pull_requests_global_0', # backward compat
38 38 pattern='/pull_requests/{pull_request_id:\d+}')
39 39 config.add_route(
40 40 name='pull_requests_global_1', # backward compat
41 41 pattern='/pull-requests/{pull_request_id:\d+}')
42 42 config.add_route(
43 43 name='pull_requests_global',
44 44 pattern='/pull-request/{pull_request_id:\d+}')
45 45
46 46 config.add_route(
47 47 name='admin_settings_open_source',
48 48 pattern='/settings/open_source')
49 49 config.add_route(
50 50 name='admin_settings_vcs_svn_generate_cfg',
51 51 pattern='/settings/vcs/svn_generate_cfg')
52 52
53 53 config.add_route(
54 54 name='admin_settings_system',
55 55 pattern='/settings/system')
56 56 config.add_route(
57 57 name='admin_settings_system_update',
58 58 pattern='/settings/system/updates')
59 59
60 60 config.add_route(
61 61 name='admin_settings_sessions',
62 62 pattern='/settings/sessions')
63 63 config.add_route(
64 64 name='admin_settings_sessions_cleanup',
65 65 pattern='/settings/sessions/cleanup')
66 66
67 67 config.add_route(
68 68 name='admin_settings_process_management',
69 69 pattern='/settings/process_management')
70 70 config.add_route(
71 71 name='admin_settings_process_management_signal',
72 72 pattern='/settings/process_management/signal')
73 73
74 74 # global permissions
75 75
76 76 config.add_route(
77 77 name='admin_permissions_application',
78 78 pattern='/permissions/application')
79 79 config.add_route(
80 80 name='admin_permissions_application_update',
81 81 pattern='/permissions/application/update')
82 82
83 83 config.add_route(
84 84 name='admin_permissions_global',
85 85 pattern='/permissions/global')
86 86 config.add_route(
87 87 name='admin_permissions_global_update',
88 88 pattern='/permissions/global/update')
89 89
90 90 config.add_route(
91 91 name='admin_permissions_object',
92 92 pattern='/permissions/object')
93 93 config.add_route(
94 94 name='admin_permissions_object_update',
95 95 pattern='/permissions/object/update')
96 96
97 97 config.add_route(
98 98 name='admin_permissions_ips',
99 99 pattern='/permissions/ips')
100 100
101 101 config.add_route(
102 102 name='admin_permissions_overview',
103 103 pattern='/permissions/overview')
104 104
105 105 config.add_route(
106 106 name='admin_permissions_auth_token_access',
107 107 pattern='/permissions/auth_token_access')
108 108
109 109 # users admin
110 110 config.add_route(
111 111 name='users',
112 112 pattern='/users')
113 113
114 114 config.add_route(
115 115 name='users_data',
116 116 pattern='/users_data')
117 117
118 118 # user auth tokens
119 119 config.add_route(
120 120 name='edit_user_auth_tokens',
121 121 pattern='/users/{user_id:\d+}/edit/auth_tokens')
122 122 config.add_route(
123 123 name='edit_user_auth_tokens_add',
124 124 pattern='/users/{user_id:\d+}/edit/auth_tokens/new')
125 125 config.add_route(
126 126 name='edit_user_auth_tokens_delete',
127 127 pattern='/users/{user_id:\d+}/edit/auth_tokens/delete')
128 128
129 # user ssh keys
130 config.add_route(
131 name='edit_user_ssh_keys',
132 pattern='/users/{user_id:\d+}/edit/ssh_keys')
133 config.add_route(
134 name='edit_user_ssh_keys_generate_keypair',
135 pattern='/users/{user_id:\d+}/edit/ssh_keys/generate')
136 config.add_route(
137 name='edit_user_ssh_keys_add',
138 pattern='/users/{user_id:\d+}/edit/ssh_keys/new')
139 config.add_route(
140 name='edit_user_ssh_keys_delete',
141 pattern='/users/{user_id:\d+}/edit/ssh_keys/delete')
142
129 143 # user emails
130 144 config.add_route(
131 145 name='edit_user_emails',
132 146 pattern='/users/{user_id:\d+}/edit/emails')
133 147 config.add_route(
134 148 name='edit_user_emails_add',
135 149 pattern='/users/{user_id:\d+}/edit/emails/new')
136 150 config.add_route(
137 151 name='edit_user_emails_delete',
138 152 pattern='/users/{user_id:\d+}/edit/emails/delete')
139 153
140 154 # user IPs
141 155 config.add_route(
142 156 name='edit_user_ips',
143 157 pattern='/users/{user_id:\d+}/edit/ips')
144 158 config.add_route(
145 159 name='edit_user_ips_add',
146 160 pattern='/users/{user_id:\d+}/edit/ips/new')
147 161 config.add_route(
148 162 name='edit_user_ips_delete',
149 163 pattern='/users/{user_id:\d+}/edit/ips/delete')
150 164
151 165 # user groups management
152 166 config.add_route(
153 167 name='edit_user_groups_management',
154 168 pattern='/users/{user_id:\d+}/edit/groups_management')
155 169
156 170 config.add_route(
157 171 name='edit_user_groups_management_updates',
158 172 pattern='/users/{user_id:\d+}/edit/edit_user_groups_management/updates')
159 173
160 174 # user audit logs
161 175 config.add_route(
162 176 name='edit_user_audit_logs',
163 177 pattern='/users/{user_id:\d+}/edit/audit')
164 178
165 179 # user groups admin
166 180 config.add_route(
167 181 name='user_groups',
168 182 pattern='/user_groups')
169 183
170 184 config.add_route(
171 185 name='user_groups_data',
172 186 pattern='/user_groups_data')
173 187
174 188 config.add_route(
175 189 name='user_group_members_data',
176 190 pattern='/user_groups/{user_group_id:\d+}/members')
177 191
178 192
179 193 def includeme(config):
180 194 settings = config.get_settings()
181 195
182 196 # Create admin navigation registry and add it to the pyramid registry.
183 197 labs_active = str2bool(settings.get('labs_settings_active', False))
184 198 navigation_registry = NavigationRegistry(labs_active=labs_active)
185 199 config.registry.registerUtility(navigation_registry)
186 200
187 201 # main admin routes
188 202 config.add_route(name='admin_home', pattern=ADMIN_PREFIX)
189 203 config.include(admin_routes, route_prefix=ADMIN_PREFIX)
190 204
191 205 # Scan module for configuration decorators.
192 206 config.scan('.views', ignore='.tests')
@@ -1,510 +1,630 b''
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Copyright (C) 2016-2017 RhodeCode GmbH
4 4 #
5 5 # This program is free software: you can redistribute it and/or modify
6 6 # it under the terms of the GNU Affero General Public License, version 3
7 7 # (only), as published by the Free Software Foundation.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU Affero General Public License
15 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16 #
17 17 # This program is dual-licensed. If you wish to learn more about the
18 18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20 20
21 21 import logging
22 22 import datetime
23 23 import formencode
24 24
25 25 from pyramid.httpexceptions import HTTPFound
26 26 from pyramid.view import view_config
27 27 from sqlalchemy.sql.functions import coalesce
28 from sqlalchemy.exc import IntegrityError
28 29
29 30 from rhodecode.apps._base import BaseAppView, DataGridAppView
30 31
31 32 from rhodecode.lib import audit_logger
32 33 from rhodecode.lib.ext_json import json
33 34 from rhodecode.lib.auth import (
34 35 LoginRequired, HasPermissionAllDecorator, CSRFRequired)
35 36 from rhodecode.lib import helpers as h
36 37 from rhodecode.lib.utils2 import safe_int, safe_unicode
37 38 from rhodecode.model.auth_token import AuthTokenModel
39 from rhodecode.model.ssh_key import SshKeyModel
38 40 from rhodecode.model.user import UserModel
39 41 from rhodecode.model.user_group import UserGroupModel
40 from rhodecode.model.db import User, or_, UserIpMap, UserEmailMap, UserApiKeys
42 from rhodecode.model.db import (
43 or_, User, UserIpMap, UserEmailMap, UserApiKeys, UserSshKeys)
41 44 from rhodecode.model.meta import Session
42 45
43 46 log = logging.getLogger(__name__)
44 47
45 48
46 49 class AdminUsersView(BaseAppView, DataGridAppView):
47 50 ALLOW_SCOPED_TOKENS = False
48 51 """
49 52 This view has alternative version inside EE, if modified please take a look
50 53 in there as well.
51 54 """
52 55
53 56 def load_default_context(self):
54 57 c = self._get_local_tmpl_context()
55 58 c.allow_scoped_tokens = self.ALLOW_SCOPED_TOKENS
56 59 self._register_global_c(c)
57 60 return c
58 61
59 62 def _redirect_for_default_user(self, username):
60 63 _ = self.request.translate
61 64 if username == User.DEFAULT_USER:
62 65 h.flash(_("You can't edit this user"), category='warning')
63 66 # TODO(marcink): redirect to 'users' admin panel once this
64 67 # is a pyramid view
65 68 raise HTTPFound('/')
66 69
67 70 @HasPermissionAllDecorator('hg.admin')
68 71 @view_config(
69 72 route_name='users', request_method='GET',
70 73 renderer='rhodecode:templates/admin/users/users.mako')
71 74 def users_list(self):
72 75 c = self.load_default_context()
73 76 return self._get_template_context(c)
74 77
75 78 @HasPermissionAllDecorator('hg.admin')
76 79 @view_config(
77 80 # renderer defined below
78 81 route_name='users_data', request_method='GET',
79 82 renderer='json_ext', xhr=True)
80 83 def users_list_data(self):
81 84 column_map = {
82 85 'first_name': 'name',
83 86 'last_name': 'lastname',
84 87 }
85 88 draw, start, limit = self._extract_chunk(self.request)
86 89 search_q, order_by, order_dir = self._extract_ordering(
87 90 self.request, column_map=column_map)
88 91
89 92 _render = self.request.get_partial_renderer(
90 93 'data_table/_dt_elements.mako')
91 94
92 95 def user_actions(user_id, username):
93 96 return _render("user_actions", user_id, username)
94 97
95 98 users_data_total_count = User.query()\
96 99 .filter(User.username != User.DEFAULT_USER) \
97 100 .count()
98 101
99 102 # json generate
100 103 base_q = User.query().filter(User.username != User.DEFAULT_USER)
101 104
102 105 if search_q:
103 106 like_expression = u'%{}%'.format(safe_unicode(search_q))
104 107 base_q = base_q.filter(or_(
105 108 User.username.ilike(like_expression),
106 109 User._email.ilike(like_expression),
107 110 User.name.ilike(like_expression),
108 111 User.lastname.ilike(like_expression),
109 112 ))
110 113
111 114 users_data_total_filtered_count = base_q.count()
112 115
113 116 sort_col = getattr(User, order_by, None)
114 117 if sort_col:
115 118 if order_dir == 'asc':
116 119 # handle null values properly to order by NULL last
117 120 if order_by in ['last_activity']:
118 121 sort_col = coalesce(sort_col, datetime.date.max)
119 122 sort_col = sort_col.asc()
120 123 else:
121 124 # handle null values properly to order by NULL last
122 125 if order_by in ['last_activity']:
123 126 sort_col = coalesce(sort_col, datetime.date.min)
124 127 sort_col = sort_col.desc()
125 128
126 129 base_q = base_q.order_by(sort_col)
127 130 base_q = base_q.offset(start).limit(limit)
128 131
129 132 users_list = base_q.all()
130 133
131 134 users_data = []
132 135 for user in users_list:
133 136 users_data.append({
134 137 "username": h.gravatar_with_user(self.request, user.username),
135 138 "email": user.email,
136 139 "first_name": user.first_name,
137 140 "last_name": user.last_name,
138 141 "last_login": h.format_date(user.last_login),
139 142 "last_activity": h.format_date(user.last_activity),
140 143 "active": h.bool2icon(user.active),
141 144 "active_raw": user.active,
142 145 "admin": h.bool2icon(user.admin),
143 146 "extern_type": user.extern_type,
144 147 "extern_name": user.extern_name,
145 148 "action": user_actions(user.user_id, user.username),
146 149 })
147 150
148 151 data = ({
149 152 'draw': draw,
150 153 'data': users_data,
151 154 'recordsTotal': users_data_total_count,
152 155 'recordsFiltered': users_data_total_filtered_count,
153 156 })
154 157
155 158 return data
156 159
157 160 @LoginRequired()
158 161 @HasPermissionAllDecorator('hg.admin')
159 162 @view_config(
160 163 route_name='edit_user_auth_tokens', request_method='GET',
161 164 renderer='rhodecode:templates/admin/users/user_edit.mako')
162 165 def auth_tokens(self):
163 166 _ = self.request.translate
164 167 c = self.load_default_context()
165 168
166 169 user_id = self.request.matchdict.get('user_id')
167 170 c.user = User.get_or_404(user_id)
168 171 self._redirect_for_default_user(c.user.username)
169 172
170 173 c.active = 'auth_tokens'
171 174
172 175 c.lifetime_values = [
173 176 (str(-1), _('forever')),
174 177 (str(5), _('5 minutes')),
175 178 (str(60), _('1 hour')),
176 179 (str(60 * 24), _('1 day')),
177 180 (str(60 * 24 * 30), _('1 month')),
178 181 ]
179 182 c.lifetime_options = [(c.lifetime_values, _("Lifetime"))]
180 183 c.role_values = [
181 184 (x, AuthTokenModel.cls._get_role_name(x))
182 185 for x in AuthTokenModel.cls.ROLES]
183 186 c.role_options = [(c.role_values, _("Role"))]
184 187 c.user_auth_tokens = AuthTokenModel().get_auth_tokens(
185 188 c.user.user_id, show_expired=True)
186 189 return self._get_template_context(c)
187 190
188 191 def maybe_attach_token_scope(self, token):
189 192 # implemented in EE edition
190 193 pass
191 194
192 195 @LoginRequired()
193 196 @HasPermissionAllDecorator('hg.admin')
194 197 @CSRFRequired()
195 198 @view_config(
196 199 route_name='edit_user_auth_tokens_add', request_method='POST')
197 200 def auth_tokens_add(self):
198 201 _ = self.request.translate
199 202 c = self.load_default_context()
200 203
201 204 user_id = self.request.matchdict.get('user_id')
202 205 c.user = User.get_or_404(user_id)
203 206
204 207 self._redirect_for_default_user(c.user.username)
205 208
206 209 user_data = c.user.get_api_data()
207 210 lifetime = safe_int(self.request.POST.get('lifetime'), -1)
208 211 description = self.request.POST.get('description')
209 212 role = self.request.POST.get('role')
210 213
211 214 token = AuthTokenModel().create(
212 215 c.user.user_id, description, lifetime, role)
213 216 token_data = token.get_api_data()
214 217
215 218 self.maybe_attach_token_scope(token)
216 219 audit_logger.store_web(
217 220 'user.edit.token.add', action_data={
218 221 'data': {'token': token_data, 'user': user_data}},
219 222 user=self._rhodecode_user, )
220 223 Session().commit()
221 224
222 225 h.flash(_("Auth token successfully created"), category='success')
223 226 return HTTPFound(h.route_path('edit_user_auth_tokens', user_id=user_id))
224 227
225 228 @LoginRequired()
226 229 @HasPermissionAllDecorator('hg.admin')
227 230 @CSRFRequired()
228 231 @view_config(
229 232 route_name='edit_user_auth_tokens_delete', request_method='POST')
230 233 def auth_tokens_delete(self):
231 234 _ = self.request.translate
232 235 c = self.load_default_context()
233 236
234 237 user_id = self.request.matchdict.get('user_id')
235 238 c.user = User.get_or_404(user_id)
236 239 self._redirect_for_default_user(c.user.username)
237 240 user_data = c.user.get_api_data()
238 241
239 242 del_auth_token = self.request.POST.get('del_auth_token')
240 243
241 244 if del_auth_token:
242 245 token = UserApiKeys.get_or_404(del_auth_token)
243 246 token_data = token.get_api_data()
244 247
245 248 AuthTokenModel().delete(del_auth_token, c.user.user_id)
246 249 audit_logger.store_web(
247 250 'user.edit.token.delete', action_data={
248 251 'data': {'token': token_data, 'user': user_data}},
249 252 user=self._rhodecode_user,)
250 253 Session().commit()
251 254 h.flash(_("Auth token successfully deleted"), category='success')
252 255
253 256 return HTTPFound(h.route_path('edit_user_auth_tokens', user_id=user_id))
254 257
255 258 @LoginRequired()
256 259 @HasPermissionAllDecorator('hg.admin')
257 260 @view_config(
261 route_name='edit_user_ssh_keys', request_method='GET',
262 renderer='rhodecode:templates/admin/users/user_edit.mako')
263 def ssh_keys(self):
264 _ = self.request.translate
265 c = self.load_default_context()
266
267 user_id = self.request.matchdict.get('user_id')
268 c.user = User.get_or_404(user_id)
269 self._redirect_for_default_user(c.user.username)
270
271 c.active = 'ssh_keys'
272 c.default_key = self.request.GET.get('default_key')
273 c.user_ssh_keys = SshKeyModel().get_ssh_keys(c.user.user_id)
274 return self._get_template_context(c)
275
276 @LoginRequired()
277 @HasPermissionAllDecorator('hg.admin')
278 @view_config(
279 route_name='edit_user_ssh_keys_generate_keypair', request_method='GET',
280 renderer='rhodecode:templates/admin/users/user_edit.mako')
281 def ssh_keys_generate_keypair(self):
282 _ = self.request.translate
283 c = self.load_default_context()
284
285 user_id = self.request.matchdict.get('user_id')
286 c.user = User.get_or_404(user_id)
287 self._redirect_for_default_user(c.user.username)
288
289 c.active = 'ssh_keys_generate'
290 comment = 'RhodeCode-SSH {}'.format(c.user.email or '')
291 c.private, c.public = SshKeyModel().generate_keypair(comment=comment)
292
293 return self._get_template_context(c)
294
295 @LoginRequired()
296 @HasPermissionAllDecorator('hg.admin')
297 @CSRFRequired()
298 @view_config(
299 route_name='edit_user_ssh_keys_add', request_method='POST')
300 def ssh_keys_add(self):
301 _ = self.request.translate
302 c = self.load_default_context()
303
304 user_id = self.request.matchdict.get('user_id')
305 c.user = User.get_or_404(user_id)
306
307 self._redirect_for_default_user(c.user.username)
308
309 user_data = c.user.get_api_data()
310 key_data = self.request.POST.get('key_data')
311 description = self.request.POST.get('description')
312
313 try:
314 if not key_data:
315 raise ValueError('Please add a valid public key')
316
317 key = SshKeyModel().parse_key(key_data.strip())
318 fingerprint = key.hash_md5()
319
320 ssh_key = SshKeyModel().create(
321 c.user.user_id, fingerprint, key_data, description)
322 ssh_key_data = ssh_key.get_api_data()
323
324 audit_logger.store_web(
325 'user.edit.ssh_key.add', action_data={
326 'data': {'ssh_key': ssh_key_data, 'user': user_data}},
327 user=self._rhodecode_user, )
328 Session().commit()
329
330 h.flash(_("Ssh Key successfully created"), category='success')
331
332 except IntegrityError:
333 log.exception("Exception during ssh key saving")
334 h.flash(_('An error occurred during ssh key saving: {}').format(
335 'Such key already exists, please use a different one'),
336 category='error')
337 except Exception as e:
338 log.exception("Exception during ssh key saving")
339 h.flash(_('An error occurred during ssh key saving: {}').format(e),
340 category='error')
341
342 return HTTPFound(
343 h.route_path('edit_user_ssh_keys', user_id=user_id))
344
345 @LoginRequired()
346 @HasPermissionAllDecorator('hg.admin')
347 @CSRFRequired()
348 @view_config(
349 route_name='edit_user_ssh_keys_delete', request_method='POST')
350 def ssh_keys_delete(self):
351 _ = self.request.translate
352 c = self.load_default_context()
353
354 user_id = self.request.matchdict.get('user_id')
355 c.user = User.get_or_404(user_id)
356 self._redirect_for_default_user(c.user.username)
357 user_data = c.user.get_api_data()
358
359 del_ssh_key = self.request.POST.get('del_ssh_key')
360
361 if del_ssh_key:
362 ssh_key = UserSshKeys.get_or_404(del_ssh_key)
363 ssh_key_data = ssh_key.get_api_data()
364
365 SshKeyModel().delete(del_ssh_key, c.user.user_id)
366 audit_logger.store_web(
367 'user.edit.ssh_key.delete', action_data={
368 'data': {'ssh_key': ssh_key_data, 'user': user_data}},
369 user=self._rhodecode_user,)
370 Session().commit()
371 h.flash(_("Ssh key successfully deleted"), category='success')
372
373 return HTTPFound(h.route_path('edit_user_ssh_keys', user_id=user_id))
374
375 @LoginRequired()
376 @HasPermissionAllDecorator('hg.admin')
377 @view_config(
258 378 route_name='edit_user_emails', request_method='GET',
259 379 renderer='rhodecode:templates/admin/users/user_edit.mako')
260 380 def emails(self):
261 381 _ = self.request.translate
262 382 c = self.load_default_context()
263 383
264 384 user_id = self.request.matchdict.get('user_id')
265 385 c.user = User.get_or_404(user_id)
266 386 self._redirect_for_default_user(c.user.username)
267 387
268 388 c.active = 'emails'
269 389 c.user_email_map = UserEmailMap.query() \
270 390 .filter(UserEmailMap.user == c.user).all()
271 391
272 392 return self._get_template_context(c)
273 393
274 394 @LoginRequired()
275 395 @HasPermissionAllDecorator('hg.admin')
276 396 @CSRFRequired()
277 397 @view_config(
278 398 route_name='edit_user_emails_add', request_method='POST')
279 399 def emails_add(self):
280 400 _ = self.request.translate
281 401 c = self.load_default_context()
282 402
283 403 user_id = self.request.matchdict.get('user_id')
284 404 c.user = User.get_or_404(user_id)
285 405 self._redirect_for_default_user(c.user.username)
286 406
287 407 email = self.request.POST.get('new_email')
288 408 user_data = c.user.get_api_data()
289 409 try:
290 410 UserModel().add_extra_email(c.user.user_id, email)
291 411 audit_logger.store_web(
292 412 'user.edit.email.add', action_data={'email': email, 'user': user_data},
293 413 user=self._rhodecode_user)
294 414 Session().commit()
295 415 h.flash(_("Added new email address `%s` for user account") % email,
296 416 category='success')
297 417 except formencode.Invalid as error:
298 418 h.flash(h.escape(error.error_dict['email']), category='error')
299 419 except Exception:
300 420 log.exception("Exception during email saving")
301 421 h.flash(_('An error occurred during email saving'),
302 422 category='error')
303 423 raise HTTPFound(h.route_path('edit_user_emails', user_id=user_id))
304 424
305 425 @LoginRequired()
306 426 @HasPermissionAllDecorator('hg.admin')
307 427 @CSRFRequired()
308 428 @view_config(
309 429 route_name='edit_user_emails_delete', request_method='POST')
310 430 def emails_delete(self):
311 431 _ = self.request.translate
312 432 c = self.load_default_context()
313 433
314 434 user_id = self.request.matchdict.get('user_id')
315 435 c.user = User.get_or_404(user_id)
316 436 self._redirect_for_default_user(c.user.username)
317 437
318 438 email_id = self.request.POST.get('del_email_id')
319 439 user_model = UserModel()
320 440
321 441 email = UserEmailMap.query().get(email_id).email
322 442 user_data = c.user.get_api_data()
323 443 user_model.delete_extra_email(c.user.user_id, email_id)
324 444 audit_logger.store_web(
325 445 'user.edit.email.delete', action_data={'email': email, 'user': user_data},
326 446 user=self._rhodecode_user)
327 447 Session().commit()
328 448 h.flash(_("Removed email address from user account"),
329 449 category='success')
330 450 raise HTTPFound(h.route_path('edit_user_emails', user_id=user_id))
331 451
332 452 @LoginRequired()
333 453 @HasPermissionAllDecorator('hg.admin')
334 454 @view_config(
335 455 route_name='edit_user_ips', request_method='GET',
336 456 renderer='rhodecode:templates/admin/users/user_edit.mako')
337 457 def ips(self):
338 458 _ = self.request.translate
339 459 c = self.load_default_context()
340 460
341 461 user_id = self.request.matchdict.get('user_id')
342 462 c.user = User.get_or_404(user_id)
343 463 self._redirect_for_default_user(c.user.username)
344 464
345 465 c.active = 'ips'
346 466 c.user_ip_map = UserIpMap.query() \
347 467 .filter(UserIpMap.user == c.user).all()
348 468
349 469 c.inherit_default_ips = c.user.inherit_default_permissions
350 470 c.default_user_ip_map = UserIpMap.query() \
351 471 .filter(UserIpMap.user == User.get_default_user()).all()
352 472
353 473 return self._get_template_context(c)
354 474
355 475 @LoginRequired()
356 476 @HasPermissionAllDecorator('hg.admin')
357 477 @CSRFRequired()
358 478 @view_config(
359 479 route_name='edit_user_ips_add', request_method='POST')
360 480 def ips_add(self):
361 481 _ = self.request.translate
362 482 c = self.load_default_context()
363 483
364 484 user_id = self.request.matchdict.get('user_id')
365 485 c.user = User.get_or_404(user_id)
366 486 # NOTE(marcink): this view is allowed for default users, as we can
367 487 # edit their IP white list
368 488
369 489 user_model = UserModel()
370 490 desc = self.request.POST.get('description')
371 491 try:
372 492 ip_list = user_model.parse_ip_range(
373 493 self.request.POST.get('new_ip'))
374 494 except Exception as e:
375 495 ip_list = []
376 496 log.exception("Exception during ip saving")
377 497 h.flash(_('An error occurred during ip saving:%s' % (e,)),
378 498 category='error')
379 499 added = []
380 500 user_data = c.user.get_api_data()
381 501 for ip in ip_list:
382 502 try:
383 503 user_model.add_extra_ip(c.user.user_id, ip, desc)
384 504 audit_logger.store_web(
385 505 'user.edit.ip.add', action_data={'ip': ip, 'user': user_data},
386 506 user=self._rhodecode_user)
387 507 Session().commit()
388 508 added.append(ip)
389 509 except formencode.Invalid as error:
390 510 msg = error.error_dict['ip']
391 511 h.flash(msg, category='error')
392 512 except Exception:
393 513 log.exception("Exception during ip saving")
394 514 h.flash(_('An error occurred during ip saving'),
395 515 category='error')
396 516 if added:
397 517 h.flash(
398 518 _("Added ips %s to user whitelist") % (', '.join(ip_list), ),
399 519 category='success')
400 520 if 'default_user' in self.request.POST:
401 521 # case for editing global IP list we do it for 'DEFAULT' user
402 522 raise HTTPFound(h.route_path('admin_permissions_ips'))
403 523 raise HTTPFound(h.route_path('edit_user_ips', user_id=user_id))
404 524
405 525 @LoginRequired()
406 526 @HasPermissionAllDecorator('hg.admin')
407 527 @CSRFRequired()
408 528 @view_config(
409 529 route_name='edit_user_ips_delete', request_method='POST')
410 530 def ips_delete(self):
411 531 _ = self.request.translate
412 532 c = self.load_default_context()
413 533
414 534 user_id = self.request.matchdict.get('user_id')
415 535 c.user = User.get_or_404(user_id)
416 536 # NOTE(marcink): this view is allowed for default users, as we can
417 537 # edit their IP white list
418 538
419 539 ip_id = self.request.POST.get('del_ip_id')
420 540 user_model = UserModel()
421 541 user_data = c.user.get_api_data()
422 542 ip = UserIpMap.query().get(ip_id).ip_addr
423 543 user_model.delete_extra_ip(c.user.user_id, ip_id)
424 544 audit_logger.store_web(
425 545 'user.edit.ip.delete', action_data={'ip': ip, 'user': user_data},
426 546 user=self._rhodecode_user)
427 547 Session().commit()
428 548 h.flash(_("Removed ip address from user whitelist"), category='success')
429 549
430 550 if 'default_user' in self.request.POST:
431 551 # case for editing global IP list we do it for 'DEFAULT' user
432 552 raise HTTPFound(h.route_path('admin_permissions_ips'))
433 553 raise HTTPFound(h.route_path('edit_user_ips', user_id=user_id))
434 554
435 555 @LoginRequired()
436 556 @HasPermissionAllDecorator('hg.admin')
437 557 @view_config(
438 558 route_name='edit_user_groups_management', request_method='GET',
439 559 renderer='rhodecode:templates/admin/users/user_edit.mako')
440 560 def groups_management(self):
441 561 c = self.load_default_context()
442 562
443 563 user_id = self.request.matchdict.get('user_id')
444 564 c.user = User.get_or_404(user_id)
445 565 c.data = c.user.group_member
446 566 self._redirect_for_default_user(c.user.username)
447 567 groups = [UserGroupModel.get_user_groups_as_dict(group.users_group)
448 568 for group in c.user.group_member]
449 569 c.groups = json.dumps(groups)
450 570 c.active = 'groups'
451 571
452 572 return self._get_template_context(c)
453 573
454 574 @LoginRequired()
455 575 @HasPermissionAllDecorator('hg.admin')
456 576 @CSRFRequired()
457 577 @view_config(
458 578 route_name='edit_user_groups_management_updates', request_method='POST')
459 579 def groups_management_updates(self):
460 580 _ = self.request.translate
461 581 c = self.load_default_context()
462 582
463 583 user_id = self.request.matchdict.get('user_id')
464 584 c.user = User.get_or_404(user_id)
465 585 self._redirect_for_default_user(c.user.username)
466 586
467 587 users_groups = set(self.request.POST.getall('users_group_id'))
468 588 users_groups_model = []
469 589
470 590 for ugid in users_groups:
471 591 users_groups_model.append(UserGroupModel().get_group(safe_int(ugid)))
472 592 user_group_model = UserGroupModel()
473 593 user_group_model.change_groups(c.user, users_groups_model)
474 594
475 595 Session().commit()
476 596 c.active = 'user_groups_management'
477 597 h.flash(_("Groups successfully changed"), category='success')
478 598
479 599 return HTTPFound(h.route_path(
480 600 'edit_user_groups_management', user_id=user_id))
481 601
482 602 @LoginRequired()
483 603 @HasPermissionAllDecorator('hg.admin')
484 604 @view_config(
485 605 route_name='edit_user_audit_logs', request_method='GET',
486 606 renderer='rhodecode:templates/admin/users/user_edit.mako')
487 607 def user_audit_logs(self):
488 608 _ = self.request.translate
489 609 c = self.load_default_context()
490 610
491 611 user_id = self.request.matchdict.get('user_id')
492 612 c.user = User.get_or_404(user_id)
493 613 self._redirect_for_default_user(c.user.username)
494 614 c.active = 'audit'
495 615
496 616 p = safe_int(self.request.GET.get('page', 1), 1)
497 617
498 618 filter_term = self.request.GET.get('filter')
499 619 user_log = UserModel().get_user_log(c.user, filter_term)
500 620
501 621 def url_generator(**kw):
502 622 if filter_term:
503 623 kw['filter'] = filter_term
504 624 return self.request.current_route_path(_query=kw)
505 625
506 626 c.audit_logs = h.Page(
507 627 user_log, page=p, items_per_page=10, url=url_generator)
508 628 c.filter_term = filter_term
509 629 return self._get_template_context(c)
510 630
@@ -1,255 +1,257 b''
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Copyright (C) 2017-2017 RhodeCode GmbH
4 4 #
5 5 # This program is free software: you can redistribute it and/or modify
6 6 # it under the terms of the GNU Affero General Public License, version 3
7 7 # (only), as published by the Free Software Foundation.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU Affero General Public License
15 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16 #
17 17 # This program is dual-licensed. If you wish to learn more about the
18 18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20 20
21 21 import logging
22 22 import datetime
23 23
24 24 from rhodecode.model import meta
25 25 from rhodecode.model.db import User, UserLog, Repository
26 26
27 27
28 28 log = logging.getLogger(__name__)
29 29
30 30 # action as key, and expected action_data as value
31 31 ACTIONS_V1 = {
32 32 'user.login.success': {'user_agent': ''},
33 33 'user.login.failure': {'user_agent': ''},
34 34 'user.logout': {'user_agent': ''},
35 35 'user.password.reset_request': {},
36 36 'user.push': {'user_agent': '', 'commit_ids': []},
37 37 'user.pull': {'user_agent': ''},
38 38
39 39 'user.create': {'data': {}},
40 40 'user.delete': {'old_data': {}},
41 41 'user.edit': {'old_data': {}},
42 42 'user.edit.permissions': {},
43 43 'user.edit.ip.add': {'ip': {}, 'user': {}},
44 44 'user.edit.ip.delete': {'ip': {}, 'user': {}},
45 45 'user.edit.token.add': {'token': {}, 'user': {}},
46 46 'user.edit.token.delete': {'token': {}, 'user': {}},
47 47 'user.edit.email.add': {'email': ''},
48 48 'user.edit.email.delete': {'email': ''},
49 'user.edit.ssh_key.add': {'token': {}, 'user': {}},
50 'user.edit.ssh_key.delete': {'token': {}, 'user': {}},
49 51 'user.edit.password_reset.enabled': {},
50 52 'user.edit.password_reset.disabled': {},
51 53
52 54 'user_group.create': {'data': {}},
53 55 'user_group.delete': {'old_data': {}},
54 56 'user_group.edit': {'old_data': {}},
55 57 'user_group.edit.permissions': {},
56 58 'user_group.edit.member.add': {'user': {}},
57 59 'user_group.edit.member.delete': {'user': {}},
58 60
59 61 'repo.create': {'data': {}},
60 62 'repo.fork': {'data': {}},
61 63 'repo.edit': {'old_data': {}},
62 64 'repo.edit.permissions': {},
63 65 'repo.delete': {'old_data': {}},
64 66 'repo.commit.strip': {'commit_id': ''},
65 67 'repo.archive.download': {'user_agent': '', 'archive_name': '',
66 68 'archive_spec': '', 'archive_cached': ''},
67 69 'repo.pull_request.create': '',
68 70 'repo.pull_request.edit': '',
69 71 'repo.pull_request.delete': '',
70 72 'repo.pull_request.close': '',
71 73 'repo.pull_request.merge': '',
72 74 'repo.pull_request.vote': '',
73 75 'repo.pull_request.comment.create': '',
74 76 'repo.pull_request.comment.delete': '',
75 77
76 78 'repo.pull_request.reviewer.add': '',
77 79 'repo.pull_request.reviewer.delete': '',
78 80
79 81 'repo.commit.comment.create': {'data': {}},
80 82 'repo.commit.comment.delete': {'data': {}},
81 83 'repo.commit.vote': '',
82 84
83 85 'repo_group.create': {'data': {}},
84 86 'repo_group.edit': {'old_data': {}},
85 87 'repo_group.edit.permissions': {},
86 88 'repo_group.delete': {'old_data': {}},
87 89 }
88 90 ACTIONS = ACTIONS_V1
89 91
90 92 SOURCE_WEB = 'source_web'
91 93 SOURCE_API = 'source_api'
92 94
93 95
94 96 class UserWrap(object):
95 97 """
96 98 Fake object used to imitate AuthUser
97 99 """
98 100
99 101 def __init__(self, user_id=None, username=None, ip_addr=None):
100 102 self.user_id = user_id
101 103 self.username = username
102 104 self.ip_addr = ip_addr
103 105
104 106
105 107 class RepoWrap(object):
106 108 """
107 109 Fake object used to imitate RepoObject that audit logger requires
108 110 """
109 111
110 112 def __init__(self, repo_id=None, repo_name=None):
111 113 self.repo_id = repo_id
112 114 self.repo_name = repo_name
113 115
114 116
115 117 def _store_log(action_name, action_data, user_id, username, user_data,
116 118 ip_address, repository_id, repository_name):
117 119 user_log = UserLog()
118 120 user_log.version = UserLog.VERSION_2
119 121
120 122 user_log.action = action_name
121 123 user_log.action_data = action_data
122 124
123 125 user_log.user_ip = ip_address
124 126
125 127 user_log.user_id = user_id
126 128 user_log.username = username
127 129 user_log.user_data = user_data
128 130
129 131 user_log.repository_id = repository_id
130 132 user_log.repository_name = repository_name
131 133
132 134 user_log.action_date = datetime.datetime.now()
133 135
134 136 log.info('AUDIT: Logging action: `%s` by user:id:%s[%s] ip:%s',
135 137 action_name, user_id, username, ip_address)
136 138
137 139 return user_log
138 140
139 141
140 142 def store_web(*args, **kwargs):
141 143 if 'action_data' not in kwargs:
142 144 kwargs['action_data'] = {}
143 145 kwargs['action_data'].update({
144 146 'source': SOURCE_WEB
145 147 })
146 148 return store(*args, **kwargs)
147 149
148 150
149 151 def store_api(*args, **kwargs):
150 152 if 'action_data' not in kwargs:
151 153 kwargs['action_data'] = {}
152 154 kwargs['action_data'].update({
153 155 'source': SOURCE_API
154 156 })
155 157 return store(*args, **kwargs)
156 158
157 159
158 160 def store(action, user, action_data=None, user_data=None, ip_addr=None,
159 161 repo=None, sa_session=None, commit=False):
160 162 """
161 163 Audit logger for various actions made by users, typically this
162 164 results in a call such::
163 165
164 166 from rhodecode.lib import audit_logger
165 167
166 168 audit_logger.store(
167 169 'repo.edit', user=self._rhodecode_user)
168 170 audit_logger.store(
169 171 'repo.delete', action_data={'data': repo_data},
170 172 user=audit_logger.UserWrap(username='itried-login', ip_addr='8.8.8.8'))
171 173
172 174 # repo action
173 175 audit_logger.store(
174 176 'repo.delete',
175 177 user=audit_logger.UserWrap(username='itried-login', ip_addr='8.8.8.8'),
176 178 repo=audit_logger.RepoWrap(repo_name='some-repo'))
177 179
178 180 # repo action, when we know and have the repository object already
179 181 audit_logger.store(
180 182 'repo.delete', action_data={'source': audit_logger.SOURCE_WEB, },
181 183 user=self._rhodecode_user,
182 184 repo=repo_object)
183 185
184 186 # alternative wrapper to the above
185 187 audit_logger.store_web(
186 188 'repo.delete', action_data={},
187 189 user=self._rhodecode_user,
188 190 repo=repo_object)
189 191
190 192 # without an user ?
191 193 audit_logger.store(
192 194 'user.login.failure',
193 195 user=audit_logger.UserWrap(
194 196 username=self.request.params.get('username'),
195 197 ip_addr=self.request.remote_addr))
196 198
197 199 """
198 200 from rhodecode.lib.utils2 import safe_unicode
199 201 from rhodecode.lib.auth import AuthUser
200 202
201 203 action_spec = ACTIONS.get(action, None)
202 204 if action_spec is None:
203 205 raise ValueError('Action `{}` is not supported'.format(action))
204 206
205 207 if not sa_session:
206 208 sa_session = meta.Session()
207 209
208 210 try:
209 211 username = getattr(user, 'username', None)
210 212 if not username:
211 213 pass
212 214
213 215 user_id = getattr(user, 'user_id', None)
214 216 if not user_id:
215 217 # maybe we have username ? Try to figure user_id from username
216 218 if username:
217 219 user_id = getattr(
218 220 User.get_by_username(username), 'user_id', None)
219 221
220 222 ip_addr = ip_addr or getattr(user, 'ip_addr', None)
221 223 if not ip_addr:
222 224 pass
223 225
224 226 if not user_data:
225 227 # try to get this from the auth user
226 228 if isinstance(user, AuthUser):
227 229 user_data = {
228 230 'username': user.username,
229 231 'email': user.email,
230 232 }
231 233
232 234 repository_name = getattr(repo, 'repo_name', None)
233 235 repository_id = getattr(repo, 'repo_id', None)
234 236 if not repository_id:
235 237 # maybe we have repo_name ? Try to figure repo_id from repo_name
236 238 if repository_name:
237 239 repository_id = getattr(
238 240 Repository.get_by_repo_name(repository_name), 'repo_id', None)
239 241
240 242 user_log = _store_log(
241 243 action_name=safe_unicode(action),
242 244 action_data=action_data or {},
243 245 user_id=user_id,
244 246 username=username,
245 247 user_data=user_data or {},
246 248 ip_address=safe_unicode(ip_addr),
247 249 repository_id=repository_id,
248 250 repository_name=repository_name
249 251 )
250 252 sa_session.add(user_log)
251 253 if commit:
252 254 sa_session.commit()
253 255
254 256 except Exception:
255 257 log.exception('AUDIT: failed to store audit log')
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
@@ -1,226 +1,230 b''
1 1
2 2 /******************************************************************************
3 3 * *
4 4 * DO NOT CHANGE THIS FILE MANUALLY *
5 5 * *
6 6 * *
7 7 * This file is automatically generated when the app starts up with *
8 8 * generate_js_files = true *
9 9 * *
10 10 * To add a route here pass jsroute=True to the route definition in the app *
11 11 * *
12 12 ******************************************************************************/
13 13 function registerRCRoutes() {
14 14 // routes registration
15 15 pyroutes.register('new_repo', '/_admin/create_repository', []);
16 16 pyroutes.register('edit_user', '/_admin/users/%(user_id)s/edit', ['user_id']);
17 17 pyroutes.register('favicon', '/favicon.ico', []);
18 18 pyroutes.register('robots', '/robots.txt', []);
19 19 pyroutes.register('auth_home', '/_admin/auth*traverse', []);
20 20 pyroutes.register('global_integrations_new', '/_admin/integrations/new', []);
21 21 pyroutes.register('global_integrations_home', '/_admin/integrations', []);
22 22 pyroutes.register('global_integrations_list', '/_admin/integrations/%(integration)s', ['integration']);
23 23 pyroutes.register('global_integrations_create', '/_admin/integrations/%(integration)s/new', ['integration']);
24 24 pyroutes.register('global_integrations_edit', '/_admin/integrations/%(integration)s/%(integration_id)s', ['integration', 'integration_id']);
25 25 pyroutes.register('repo_group_integrations_home', '/%(repo_group_name)s/settings/integrations', ['repo_group_name']);
26 26 pyroutes.register('repo_group_integrations_new', '/%(repo_group_name)s/settings/integrations/new', ['repo_group_name']);
27 27 pyroutes.register('repo_group_integrations_list', '/%(repo_group_name)s/settings/integrations/%(integration)s', ['repo_group_name', 'integration']);
28 28 pyroutes.register('repo_group_integrations_create', '/%(repo_group_name)s/settings/integrations/%(integration)s/new', ['repo_group_name', 'integration']);
29 29 pyroutes.register('repo_group_integrations_edit', '/%(repo_group_name)s/settings/integrations/%(integration)s/%(integration_id)s', ['repo_group_name', 'integration', 'integration_id']);
30 30 pyroutes.register('repo_integrations_home', '/%(repo_name)s/settings/integrations', ['repo_name']);
31 31 pyroutes.register('repo_integrations_new', '/%(repo_name)s/settings/integrations/new', ['repo_name']);
32 32 pyroutes.register('repo_integrations_list', '/%(repo_name)s/settings/integrations/%(integration)s', ['repo_name', 'integration']);
33 33 pyroutes.register('repo_integrations_create', '/%(repo_name)s/settings/integrations/%(integration)s/new', ['repo_name', 'integration']);
34 34 pyroutes.register('repo_integrations_edit', '/%(repo_name)s/settings/integrations/%(integration)s/%(integration_id)s', ['repo_name', 'integration', 'integration_id']);
35 35 pyroutes.register('ops_ping', '/_admin/ops/ping', []);
36 36 pyroutes.register('ops_error_test', '/_admin/ops/error', []);
37 37 pyroutes.register('ops_redirect_test', '/_admin/ops/redirect', []);
38 38 pyroutes.register('admin_home', '/_admin', []);
39 39 pyroutes.register('admin_audit_logs', '/_admin/audit_logs', []);
40 40 pyroutes.register('pull_requests_global_0', '/_admin/pull_requests/%(pull_request_id)s', ['pull_request_id']);
41 41 pyroutes.register('pull_requests_global_1', '/_admin/pull-requests/%(pull_request_id)s', ['pull_request_id']);
42 42 pyroutes.register('pull_requests_global', '/_admin/pull-request/%(pull_request_id)s', ['pull_request_id']);
43 43 pyroutes.register('admin_settings_open_source', '/_admin/settings/open_source', []);
44 44 pyroutes.register('admin_settings_vcs_svn_generate_cfg', '/_admin/settings/vcs/svn_generate_cfg', []);
45 45 pyroutes.register('admin_settings_system', '/_admin/settings/system', []);
46 46 pyroutes.register('admin_settings_system_update', '/_admin/settings/system/updates', []);
47 47 pyroutes.register('admin_settings_sessions', '/_admin/settings/sessions', []);
48 48 pyroutes.register('admin_settings_sessions_cleanup', '/_admin/settings/sessions/cleanup', []);
49 49 pyroutes.register('admin_settings_process_management', '/_admin/settings/process_management', []);
50 50 pyroutes.register('admin_settings_process_management_signal', '/_admin/settings/process_management/signal', []);
51 51 pyroutes.register('admin_permissions_application', '/_admin/permissions/application', []);
52 52 pyroutes.register('admin_permissions_application_update', '/_admin/permissions/application/update', []);
53 53 pyroutes.register('admin_permissions_global', '/_admin/permissions/global', []);
54 54 pyroutes.register('admin_permissions_global_update', '/_admin/permissions/global/update', []);
55 55 pyroutes.register('admin_permissions_object', '/_admin/permissions/object', []);
56 56 pyroutes.register('admin_permissions_object_update', '/_admin/permissions/object/update', []);
57 57 pyroutes.register('admin_permissions_ips', '/_admin/permissions/ips', []);
58 58 pyroutes.register('admin_permissions_overview', '/_admin/permissions/overview', []);
59 59 pyroutes.register('admin_permissions_auth_token_access', '/_admin/permissions/auth_token_access', []);
60 60 pyroutes.register('users', '/_admin/users', []);
61 61 pyroutes.register('users_data', '/_admin/users_data', []);
62 62 pyroutes.register('edit_user_auth_tokens', '/_admin/users/%(user_id)s/edit/auth_tokens', ['user_id']);
63 63 pyroutes.register('edit_user_auth_tokens_add', '/_admin/users/%(user_id)s/edit/auth_tokens/new', ['user_id']);
64 64 pyroutes.register('edit_user_auth_tokens_delete', '/_admin/users/%(user_id)s/edit/auth_tokens/delete', ['user_id']);
65 pyroutes.register('edit_user_ssh_keys', '/_admin/users/%(user_id)s/edit/ssh_keys', ['user_id']);
66 pyroutes.register('edit_user_ssh_keys_generate_keypair', '/_admin/users/%(user_id)s/edit/ssh_keys/generate', ['user_id']);
67 pyroutes.register('edit_user_ssh_keys_add', '/_admin/users/%(user_id)s/edit/ssh_keys/new', ['user_id']);
68 pyroutes.register('edit_user_ssh_keys_delete', '/_admin/users/%(user_id)s/edit/ssh_keys/delete', ['user_id']);
65 69 pyroutes.register('edit_user_emails', '/_admin/users/%(user_id)s/edit/emails', ['user_id']);
66 70 pyroutes.register('edit_user_emails_add', '/_admin/users/%(user_id)s/edit/emails/new', ['user_id']);
67 71 pyroutes.register('edit_user_emails_delete', '/_admin/users/%(user_id)s/edit/emails/delete', ['user_id']);
68 72 pyroutes.register('edit_user_ips', '/_admin/users/%(user_id)s/edit/ips', ['user_id']);
69 73 pyroutes.register('edit_user_ips_add', '/_admin/users/%(user_id)s/edit/ips/new', ['user_id']);
70 74 pyroutes.register('edit_user_ips_delete', '/_admin/users/%(user_id)s/edit/ips/delete', ['user_id']);
71 75 pyroutes.register('edit_user_groups_management', '/_admin/users/%(user_id)s/edit/groups_management', ['user_id']);
72 76 pyroutes.register('edit_user_groups_management_updates', '/_admin/users/%(user_id)s/edit/edit_user_groups_management/updates', ['user_id']);
73 77 pyroutes.register('edit_user_audit_logs', '/_admin/users/%(user_id)s/edit/audit', ['user_id']);
74 78 pyroutes.register('user_groups', '/_admin/user_groups', []);
75 79 pyroutes.register('user_groups_data', '/_admin/user_groups_data', []);
76 80 pyroutes.register('user_group_members_data', '/_admin/user_groups/%(user_group_id)s/members', ['user_group_id']);
77 81 pyroutes.register('channelstream_connect', '/_admin/channelstream/connect', []);
78 82 pyroutes.register('channelstream_subscribe', '/_admin/channelstream/subscribe', []);
79 83 pyroutes.register('channelstream_proxy', '/_channelstream', []);
80 84 pyroutes.register('login', '/_admin/login', []);
81 85 pyroutes.register('logout', '/_admin/logout', []);
82 86 pyroutes.register('register', '/_admin/register', []);
83 87 pyroutes.register('reset_password', '/_admin/password_reset', []);
84 88 pyroutes.register('reset_password_confirmation', '/_admin/password_reset_confirmation', []);
85 89 pyroutes.register('home', '/', []);
86 90 pyroutes.register('user_autocomplete_data', '/_users', []);
87 91 pyroutes.register('user_group_autocomplete_data', '/_user_groups', []);
88 92 pyroutes.register('repo_list_data', '/_repos', []);
89 93 pyroutes.register('goto_switcher_data', '/_goto_data', []);
90 94 pyroutes.register('journal', '/_admin/journal', []);
91 95 pyroutes.register('journal_rss', '/_admin/journal/rss', []);
92 96 pyroutes.register('journal_atom', '/_admin/journal/atom', []);
93 97 pyroutes.register('journal_public', '/_admin/public_journal', []);
94 98 pyroutes.register('journal_public_atom', '/_admin/public_journal/atom', []);
95 99 pyroutes.register('journal_public_atom_old', '/_admin/public_journal_atom', []);
96 100 pyroutes.register('journal_public_rss', '/_admin/public_journal/rss', []);
97 101 pyroutes.register('journal_public_rss_old', '/_admin/public_journal_rss', []);
98 102 pyroutes.register('toggle_following', '/_admin/toggle_following', []);
99 103 pyroutes.register('repo_creating', '/%(repo_name)s/repo_creating', ['repo_name']);
100 104 pyroutes.register('repo_creating_check', '/%(repo_name)s/repo_creating_check', ['repo_name']);
101 105 pyroutes.register('repo_summary_explicit', '/%(repo_name)s/summary', ['repo_name']);
102 106 pyroutes.register('repo_summary_commits', '/%(repo_name)s/summary-commits', ['repo_name']);
103 107 pyroutes.register('repo_commit', '/%(repo_name)s/changeset/%(commit_id)s', ['repo_name', 'commit_id']);
104 108 pyroutes.register('repo_commit_children', '/%(repo_name)s/changeset_children/%(commit_id)s', ['repo_name', 'commit_id']);
105 109 pyroutes.register('repo_commit_parents', '/%(repo_name)s/changeset_parents/%(commit_id)s', ['repo_name', 'commit_id']);
106 110 pyroutes.register('repo_commit_raw', '/%(repo_name)s/changeset-diff/%(commit_id)s', ['repo_name', 'commit_id']);
107 111 pyroutes.register('repo_commit_patch', '/%(repo_name)s/changeset-patch/%(commit_id)s', ['repo_name', 'commit_id']);
108 112 pyroutes.register('repo_commit_download', '/%(repo_name)s/changeset-download/%(commit_id)s', ['repo_name', 'commit_id']);
109 113 pyroutes.register('repo_commit_data', '/%(repo_name)s/changeset-data/%(commit_id)s', ['repo_name', 'commit_id']);
110 114 pyroutes.register('repo_commit_comment_create', '/%(repo_name)s/changeset/%(commit_id)s/comment/create', ['repo_name', 'commit_id']);
111 115 pyroutes.register('repo_commit_comment_preview', '/%(repo_name)s/changeset/%(commit_id)s/comment/preview', ['repo_name', 'commit_id']);
112 116 pyroutes.register('repo_commit_comment_delete', '/%(repo_name)s/changeset/%(commit_id)s/comment/%(comment_id)s/delete', ['repo_name', 'commit_id', 'comment_id']);
113 117 pyroutes.register('repo_commit_raw_deprecated', '/%(repo_name)s/raw-changeset/%(commit_id)s', ['repo_name', 'commit_id']);
114 118 pyroutes.register('repo_archivefile', '/%(repo_name)s/archive/%(fname)s', ['repo_name', 'fname']);
115 119 pyroutes.register('repo_files_diff', '/%(repo_name)s/diff/%(f_path)s', ['repo_name', 'f_path']);
116 120 pyroutes.register('repo_files_diff_2way_redirect', '/%(repo_name)s/diff-2way/%(f_path)s', ['repo_name', 'f_path']);
117 121 pyroutes.register('repo_files', '/%(repo_name)s/files/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
118 122 pyroutes.register('repo_files:default_path', '/%(repo_name)s/files/%(commit_id)s/', ['repo_name', 'commit_id']);
119 123 pyroutes.register('repo_files:default_commit', '/%(repo_name)s/files', ['repo_name']);
120 124 pyroutes.register('repo_files:rendered', '/%(repo_name)s/render/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
121 125 pyroutes.register('repo_files:annotated', '/%(repo_name)s/annotate/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
122 126 pyroutes.register('repo_files:annotated_previous', '/%(repo_name)s/annotate-previous/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
123 127 pyroutes.register('repo_nodetree_full', '/%(repo_name)s/nodetree_full/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
124 128 pyroutes.register('repo_nodetree_full:default_path', '/%(repo_name)s/nodetree_full/%(commit_id)s/', ['repo_name', 'commit_id']);
125 129 pyroutes.register('repo_files_nodelist', '/%(repo_name)s/nodelist/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
126 130 pyroutes.register('repo_file_raw', '/%(repo_name)s/raw/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
127 131 pyroutes.register('repo_file_download', '/%(repo_name)s/download/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
128 132 pyroutes.register('repo_file_download:legacy', '/%(repo_name)s/rawfile/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
129 133 pyroutes.register('repo_file_history', '/%(repo_name)s/history/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
130 134 pyroutes.register('repo_file_authors', '/%(repo_name)s/authors/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
131 135 pyroutes.register('repo_files_remove_file', '/%(repo_name)s/remove_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
132 136 pyroutes.register('repo_files_delete_file', '/%(repo_name)s/delete_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
133 137 pyroutes.register('repo_files_edit_file', '/%(repo_name)s/edit_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
134 138 pyroutes.register('repo_files_update_file', '/%(repo_name)s/update_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
135 139 pyroutes.register('repo_files_add_file', '/%(repo_name)s/add_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
136 140 pyroutes.register('repo_files_create_file', '/%(repo_name)s/create_file/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
137 141 pyroutes.register('repo_refs_data', '/%(repo_name)s/refs-data', ['repo_name']);
138 142 pyroutes.register('repo_refs_changelog_data', '/%(repo_name)s/refs-data-changelog', ['repo_name']);
139 143 pyroutes.register('repo_stats', '/%(repo_name)s/repo_stats/%(commit_id)s', ['repo_name', 'commit_id']);
140 144 pyroutes.register('repo_changelog', '/%(repo_name)s/changelog', ['repo_name']);
141 145 pyroutes.register('repo_changelog_file', '/%(repo_name)s/changelog/%(commit_id)s/%(f_path)s', ['repo_name', 'commit_id', 'f_path']);
142 146 pyroutes.register('repo_changelog_elements', '/%(repo_name)s/changelog_elements', ['repo_name']);
143 147 pyroutes.register('repo_compare_select', '/%(repo_name)s/compare', ['repo_name']);
144 148 pyroutes.register('repo_compare', '/%(repo_name)s/compare/%(source_ref_type)s@%(source_ref)s...%(target_ref_type)s@%(target_ref)s', ['repo_name', 'source_ref_type', 'source_ref', 'target_ref_type', 'target_ref']);
145 149 pyroutes.register('tags_home', '/%(repo_name)s/tags', ['repo_name']);
146 150 pyroutes.register('branches_home', '/%(repo_name)s/branches', ['repo_name']);
147 151 pyroutes.register('bookmarks_home', '/%(repo_name)s/bookmarks', ['repo_name']);
148 152 pyroutes.register('repo_fork_new', '/%(repo_name)s/fork', ['repo_name']);
149 153 pyroutes.register('repo_fork_create', '/%(repo_name)s/fork/create', ['repo_name']);
150 154 pyroutes.register('repo_forks_show_all', '/%(repo_name)s/forks', ['repo_name']);
151 155 pyroutes.register('repo_forks_data', '/%(repo_name)s/forks/data', ['repo_name']);
152 156 pyroutes.register('pullrequest_show', '/%(repo_name)s/pull-request/%(pull_request_id)s', ['repo_name', 'pull_request_id']);
153 157 pyroutes.register('pullrequest_show_all', '/%(repo_name)s/pull-request', ['repo_name']);
154 158 pyroutes.register('pullrequest_show_all_data', '/%(repo_name)s/pull-request-data', ['repo_name']);
155 159 pyroutes.register('pullrequest_repo_refs', '/%(repo_name)s/pull-request/refs/%(target_repo_name)s', ['repo_name', 'target_repo_name']);
156 160 pyroutes.register('pullrequest_repo_destinations', '/%(repo_name)s/pull-request/repo-destinations', ['repo_name']);
157 161 pyroutes.register('pullrequest_new', '/%(repo_name)s/pull-request/new', ['repo_name']);
158 162 pyroutes.register('pullrequest_create', '/%(repo_name)s/pull-request/create', ['repo_name']);
159 163 pyroutes.register('pullrequest_update', '/%(repo_name)s/pull-request/%(pull_request_id)s/update', ['repo_name', 'pull_request_id']);
160 164 pyroutes.register('pullrequest_merge', '/%(repo_name)s/pull-request/%(pull_request_id)s/merge', ['repo_name', 'pull_request_id']);
161 165 pyroutes.register('pullrequest_delete', '/%(repo_name)s/pull-request/%(pull_request_id)s/delete', ['repo_name', 'pull_request_id']);
162 166 pyroutes.register('pullrequest_comment_create', '/%(repo_name)s/pull-request/%(pull_request_id)s/comment', ['repo_name', 'pull_request_id']);
163 167 pyroutes.register('pullrequest_comment_delete', '/%(repo_name)s/pull-request/%(pull_request_id)s/comment/%(comment_id)s/delete', ['repo_name', 'pull_request_id', 'comment_id']);
164 168 pyroutes.register('edit_repo', '/%(repo_name)s/settings', ['repo_name']);
165 169 pyroutes.register('edit_repo_advanced', '/%(repo_name)s/settings/advanced', ['repo_name']);
166 170 pyroutes.register('edit_repo_advanced_delete', '/%(repo_name)s/settings/advanced/delete', ['repo_name']);
167 171 pyroutes.register('edit_repo_advanced_locking', '/%(repo_name)s/settings/advanced/locking', ['repo_name']);
168 172 pyroutes.register('edit_repo_advanced_journal', '/%(repo_name)s/settings/advanced/journal', ['repo_name']);
169 173 pyroutes.register('edit_repo_advanced_fork', '/%(repo_name)s/settings/advanced/fork', ['repo_name']);
170 174 pyroutes.register('edit_repo_caches', '/%(repo_name)s/settings/caches', ['repo_name']);
171 175 pyroutes.register('edit_repo_perms', '/%(repo_name)s/settings/permissions', ['repo_name']);
172 176 pyroutes.register('repo_reviewers', '/%(repo_name)s/settings/review/rules', ['repo_name']);
173 177 pyroutes.register('repo_default_reviewers_data', '/%(repo_name)s/settings/review/default-reviewers', ['repo_name']);
174 178 pyroutes.register('repo_maintenance', '/%(repo_name)s/settings/maintenance', ['repo_name']);
175 179 pyroutes.register('repo_maintenance_execute', '/%(repo_name)s/settings/maintenance/execute', ['repo_name']);
176 180 pyroutes.register('strip', '/%(repo_name)s/settings/strip', ['repo_name']);
177 181 pyroutes.register('strip_check', '/%(repo_name)s/settings/strip_check', ['repo_name']);
178 182 pyroutes.register('strip_execute', '/%(repo_name)s/settings/strip_execute', ['repo_name']);
179 183 pyroutes.register('rss_feed_home', '/%(repo_name)s/feed/rss', ['repo_name']);
180 184 pyroutes.register('atom_feed_home', '/%(repo_name)s/feed/atom', ['repo_name']);
181 185 pyroutes.register('repo_summary', '/%(repo_name)s', ['repo_name']);
182 186 pyroutes.register('repo_summary_slash', '/%(repo_name)s/', ['repo_name']);
183 187 pyroutes.register('repo_group_home', '/%(repo_group_name)s', ['repo_group_name']);
184 188 pyroutes.register('repo_group_home_slash', '/%(repo_group_name)s/', ['repo_group_name']);
185 189 pyroutes.register('search', '/_admin/search', []);
186 190 pyroutes.register('search_repo', '/%(repo_name)s/search', ['repo_name']);
187 191 pyroutes.register('user_profile', '/_profiles/%(username)s', ['username']);
188 192 pyroutes.register('my_account_profile', '/_admin/my_account/profile', []);
189 193 pyroutes.register('my_account_edit', '/_admin/my_account/edit', []);
190 194 pyroutes.register('my_account_update', '/_admin/my_account/update', []);
191 195 pyroutes.register('my_account_password', '/_admin/my_account/password', []);
192 196 pyroutes.register('my_account_password_update', '/_admin/my_account/password/update', []);
193 197 pyroutes.register('my_account_auth_tokens', '/_admin/my_account/auth_tokens', []);
194 198 pyroutes.register('my_account_auth_tokens_add', '/_admin/my_account/auth_tokens/new', []);
195 199 pyroutes.register('my_account_auth_tokens_delete', '/_admin/my_account/auth_tokens/delete', []);
196 200 pyroutes.register('my_account_emails', '/_admin/my_account/emails', []);
197 201 pyroutes.register('my_account_emails_add', '/_admin/my_account/emails/new', []);
198 202 pyroutes.register('my_account_emails_delete', '/_admin/my_account/emails/delete', []);
199 203 pyroutes.register('my_account_repos', '/_admin/my_account/repos', []);
200 204 pyroutes.register('my_account_watched', '/_admin/my_account/watched', []);
201 205 pyroutes.register('my_account_perms', '/_admin/my_account/perms', []);
202 206 pyroutes.register('my_account_notifications', '/_admin/my_account/notifications', []);
203 207 pyroutes.register('my_account_notifications_toggle_visibility', '/_admin/my_account/toggle_visibility', []);
204 208 pyroutes.register('my_account_pullrequests', '/_admin/my_account/pull_requests', []);
205 209 pyroutes.register('my_account_pullrequests_data', '/_admin/my_account/pull_requests/data', []);
206 210 pyroutes.register('notifications_show_all', '/_admin/notifications', []);
207 211 pyroutes.register('notifications_mark_all_read', '/_admin/notifications/mark_all_read', []);
208 212 pyroutes.register('notifications_show', '/_admin/notifications/%(notification_id)s', ['notification_id']);
209 213 pyroutes.register('notifications_update', '/_admin/notifications/%(notification_id)s/update', ['notification_id']);
210 214 pyroutes.register('notifications_delete', '/_admin/notifications/%(notification_id)s/delete', ['notification_id']);
211 215 pyroutes.register('my_account_notifications_test_channelstream', '/_admin/my_account/test_channelstream', []);
212 216 pyroutes.register('gists_show', '/_admin/gists', []);
213 217 pyroutes.register('gists_new', '/_admin/gists/new', []);
214 218 pyroutes.register('gists_create', '/_admin/gists/create', []);
215 219 pyroutes.register('gist_show', '/_admin/gists/%(gist_id)s', ['gist_id']);
216 220 pyroutes.register('gist_delete', '/_admin/gists/%(gist_id)s/delete', ['gist_id']);
217 221 pyroutes.register('gist_edit', '/_admin/gists/%(gist_id)s/edit', ['gist_id']);
218 222 pyroutes.register('gist_edit_check_revision', '/_admin/gists/%(gist_id)s/edit/check_revision', ['gist_id']);
219 223 pyroutes.register('gist_update', '/_admin/gists/%(gist_id)s/update', ['gist_id']);
220 224 pyroutes.register('gist_show_rev', '/_admin/gists/%(gist_id)s/%(revision)s', ['gist_id', 'revision']);
221 225 pyroutes.register('gist_show_formatted', '/_admin/gists/%(gist_id)s/%(revision)s/%(format)s', ['gist_id', 'revision', 'format']);
222 226 pyroutes.register('gist_show_formatted_path', '/_admin/gists/%(gist_id)s/%(revision)s/%(format)s/%(f_path)s', ['gist_id', 'revision', 'format', 'f_path']);
223 227 pyroutes.register('debug_style_home', '/_admin/debug_style', []);
224 228 pyroutes.register('debug_style_template', '/_admin/debug_style/t/%(t_path)s', ['t_path']);
225 229 pyroutes.register('apiv2', '/_admin/api', []);
226 230 }
@@ -1,56 +1,57 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <%inherit file="/base/base.mako"/>
3 3
4 4 <%def name="title()">
5 5 ${_('%s user settings') % c.user.username}
6 6 %if c.rhodecode_name:
7 7 &middot; ${h.branding(c.rhodecode_name)}
8 8 %endif
9 9 </%def>
10 10
11 11 <%def name="breadcrumbs_links()">
12 12 ${h.link_to(_('Admin'),h.route_path('admin_home'))}
13 13 &raquo;
14 14 ${h.link_to(_('Users'),h.route_path('users'))}
15 15 &raquo;
16 16 % if c.user.active:
17 17 ${c.user.username}
18 18 % else:
19 19 <strike title="${_('This user is set as disabled')}">${c.user.username}</strike>
20 20 % endif
21 21
22 22 </%def>
23 23
24 24 <%def name="menu_bar_nav()">
25 25 ${self.menu_items(active='admin')}
26 26 </%def>
27 27
28 28 <%def name="main()">
29 29 <div class="box user_settings">
30 30 <div class="title">
31 31 ${self.breadcrumbs()}
32 32 </div>
33 33
34 34 ##main
35 35 <div class="sidebar-col-wrapper">
36 36 <div class="sidebar">
37 37 <ul class="nav nav-pills nav-stacked">
38 38 <li class="${'active' if c.active=='profile' else ''}"><a href="${h.url('edit_user', user_id=c.user.user_id)}">${_('User Profile')}</a></li>
39 39 <li class="${'active' if c.active=='auth_tokens' else ''}"><a href="${h.route_path('edit_user_auth_tokens', user_id=c.user.user_id)}">${_('Auth tokens')}</a></li>
40 <li class="${'active' if c.active in ['ssh_keys','ssh_keys_generate'] else ''}"><a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id)}">${_('SSH Keys')}</a></li>
40 41 <li class="${'active' if c.active=='advanced' else ''}"><a href="${h.url('edit_user_advanced', user_id=c.user.user_id)}">${_('Advanced')}</a></li>
41 42 <li class="${'active' if c.active=='global_perms' else ''}"><a href="${h.url('edit_user_global_perms', user_id=c.user.user_id)}">${_('Global permissions')}</a></li>
42 43 <li class="${'active' if c.active=='perms_summary' else ''}"><a href="${h.url('edit_user_perms_summary', user_id=c.user.user_id)}">${_('Permissions summary')}</a></li>
43 44 <li class="${'active' if c.active=='emails' else ''}"><a href="${h.route_path('edit_user_emails', user_id=c.user.user_id)}">${_('Emails')}</a></li>
44 45 <li class="${'active' if c.active=='ips' else ''}"><a href="${h.route_path('edit_user_ips', user_id=c.user.user_id)}">${_('Ip Whitelist')}</a></li>
45 46 <li class="${'active' if c.active=='groups' else ''}"><a href="${h.route_path('edit_user_groups_management', user_id=c.user.user_id)}">${_('User Groups Management')}</a></li>
46 47 <li class="${'active' if c.active=='audit' else ''}"><a href="${h.route_path('edit_user_audit_logs', user_id=c.user.user_id)}">${_('User audit')}</a></li>
47 48 </ul>
48 49 </div>
49 50
50 51 <div class="main-content-full-width">
51 52 <%include file="/admin/users/user_edit_${c.active}.mako"/>
52 53 </div>
53 54 </div>
54 55 </div>
55 56
56 57 </%def>
@@ -1,254 +1,255 b''
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Copyright (C) 2010-2017 RhodeCode GmbH
4 4 #
5 5 # This program is free software: you can redistribute it and/or modify
6 6 # it under the terms of the GNU Affero General Public License, version 3
7 7 # (only), as published by the Free Software Foundation.
8 8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 13 #
14 14 # You should have received a copy of the GNU Affero General Public License
15 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16 #
17 17 # This program is dual-licensed. If you wish to learn more about the
18 18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20 20
21 21 # Import early to make sure things are patched up properly
22 22 from setuptools import setup, find_packages
23 23
24 24 import os
25 25 import sys
26 26 import pkgutil
27 27 import platform
28 28
29 29 from pip.download import PipSession
30 30 from pip.req import parse_requirements
31 31
32 32 from codecs import open
33 33
34 34
35 35 if sys.version_info < (2, 7):
36 36 raise Exception('RhodeCode requires Python 2.7 or later')
37 37
38 38 here = os.path.abspath(os.path.dirname(__file__))
39 39
40 40 # defines current platform
41 41 __platform__ = platform.system()
42 42 __license__ = 'AGPLv3, and Commercial License'
43 43 __author__ = 'RhodeCode GmbH'
44 44 __url__ = 'https://code.rhodecode.com'
45 45 is_windows = __platform__ in ('Windows',)
46 46
47 47
48 48 def _get_requirements(req_filename, exclude=None, extras=None):
49 49 extras = extras or []
50 50 exclude = exclude or []
51 51
52 52 try:
53 53 parsed = parse_requirements(
54 54 os.path.join(here, req_filename), session=PipSession())
55 55 except TypeError:
56 56 # try pip < 6.0.0, that doesn't support session
57 57 parsed = parse_requirements(os.path.join(here, req_filename))
58 58
59 59 requirements = []
60 60 for ir in parsed:
61 61 if ir.req and ir.name not in exclude:
62 62 requirements.append(str(ir.req))
63 63 return requirements + extras
64 64
65 65
66 66 # requirements extract
67 67 setup_requirements = ['PasteScript', 'pytest-runner']
68 68 install_requirements = _get_requirements(
69 69 'requirements.txt', exclude=['setuptools'])
70 70 test_requirements = _get_requirements(
71 71 'requirements_test.txt', extras=['configobj'])
72 72
73 73 install_requirements = [
74 74 'Babel',
75 75 'Beaker',
76 76 'FormEncode',
77 77 'Mako',
78 78 'Markdown',
79 79 'MarkupSafe',
80 80 'MySQL-python',
81 81 'Paste',
82 82 'PasteDeploy',
83 83 'PasteScript',
84 84 'Pygments',
85 85 'pygments-markdown-lexer',
86 86 'Pylons',
87 87 'Routes',
88 88 'SQLAlchemy',
89 89 'Tempita',
90 90 'URLObject',
91 91 'WebError',
92 92 'WebHelpers',
93 93 'WebHelpers2',
94 94 'WebOb',
95 95 'WebTest',
96 96 'Whoosh',
97 97 'alembic',
98 98 'amqplib',
99 99 'anyjson',
100 100 'appenlight-client',
101 101 'authomatic',
102 102 'cssselect',
103 103 'celery',
104 104 'channelstream',
105 105 'colander',
106 106 'decorator',
107 107 'deform',
108 108 'docutils',
109 109 'gevent',
110 110 'gunicorn',
111 111 'infrae.cache',
112 112 'ipython',
113 113 'iso8601',
114 114 'kombu',
115 115 'lxml',
116 116 'msgpack-python',
117 117 'nbconvert',
118 118 'packaging',
119 119 'psycopg2',
120 120 'py-gfm',
121 121 'pycrypto',
122 122 'pycurl',
123 123 'pyparsing',
124 124 'pyramid',
125 125 'pyramid-debugtoolbar',
126 126 'pyramid-mako',
127 127 'pyramid-beaker',
128 128 'pysqlite',
129 129 'python-dateutil',
130 130 'python-ldap',
131 131 'python-memcached',
132 132 'python-pam',
133 133 'recaptcha-client',
134 134 'repoze.lru',
135 135 'requests',
136 136 'simplejson',
137 'sshpubkeys',
137 138 'subprocess32',
138 139 'waitress',
139 140 'zope.cachedescriptors',
140 141 'dogpile.cache',
141 142 'dogpile.core',
142 143 'psutil',
143 144 'py-bcrypt',
144 145 ]
145 146
146 147
147 148 def get_version():
148 149 version = pkgutil.get_data('rhodecode', 'VERSION')
149 150 return version.strip()
150 151
151 152
152 153 # additional files that goes into package itself
153 154 package_data = {
154 155 '': ['*.txt', '*.rst'],
155 156 'configs': ['*.ini'],
156 157 'rhodecode': ['VERSION', 'i18n/*/LC_MESSAGES/*.mo', ],
157 158 }
158 159
159 160 description = 'Source Code Management Platform'
160 161 keywords = ' '.join([
161 162 'rhodecode', 'mercurial', 'git', 'svn',
162 163 'code review',
163 164 'repo groups', 'ldap', 'repository management', 'hgweb',
164 165 'hgwebdir', 'gitweb', 'serving hgweb',
165 166 ])
166 167
167 168
168 169 # README/DESCRIPTION generation
169 170 readme_file = 'README.rst'
170 171 changelog_file = 'CHANGES.rst'
171 172 try:
172 173 long_description = open(readme_file).read() + '\n\n' + \
173 174 open(changelog_file).read()
174 175 except IOError as err:
175 176 sys.stderr.write(
176 177 "[WARNING] Cannot find file specified as long_description (%s)\n "
177 178 "or changelog (%s) skipping that file" % (readme_file, changelog_file))
178 179 long_description = description
179 180
180 181
181 182 setup(
182 183 name='rhodecode-enterprise-ce',
183 184 version=get_version(),
184 185 description=description,
185 186 long_description=long_description,
186 187 keywords=keywords,
187 188 license=__license__,
188 189 author=__author__,
189 190 author_email='marcin@rhodecode.com',
190 191 url=__url__,
191 192 setup_requires=setup_requirements,
192 193 install_requires=install_requirements,
193 194 tests_require=test_requirements,
194 195 zip_safe=False,
195 196 packages=find_packages(exclude=["docs", "tests*"]),
196 197 package_data=package_data,
197 198 include_package_data=True,
198 199 classifiers=[
199 200 'Development Status :: 6 - Mature',
200 201 'Environment :: Web Environment',
201 202 'Intended Audience :: Developers',
202 203 'Operating System :: OS Independent',
203 204 'Topic :: Software Development :: Version Control',
204 205 'License :: OSI Approved :: Affero GNU General Public License v3 or later (AGPLv3+)',
205 206 'Programming Language :: Python :: 2.7',
206 207 ],
207 208 message_extractors={
208 209 'rhodecode': [
209 210 ('**.py', 'python', None),
210 211 ('**.js', 'javascript', None),
211 212 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
212 213 ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
213 214 ('public/**', 'ignore', None),
214 215 ]
215 216 },
216 217 paster_plugins=['PasteScript', 'Pylons'],
217 218 entry_points={
218 219 'enterprise.plugins1': [
219 220 'crowd=rhodecode.authentication.plugins.auth_crowd:plugin_factory',
220 221 'headers=rhodecode.authentication.plugins.auth_headers:plugin_factory',
221 222 'jasig_cas=rhodecode.authentication.plugins.auth_jasig_cas:plugin_factory',
222 223 'ldap=rhodecode.authentication.plugins.auth_ldap:plugin_factory',
223 224 'pam=rhodecode.authentication.plugins.auth_pam:plugin_factory',
224 225 'rhodecode=rhodecode.authentication.plugins.auth_rhodecode:plugin_factory',
225 226 'token=rhodecode.authentication.plugins.auth_token:plugin_factory',
226 227 ],
227 228 'paste.app_factory': [
228 229 'main=rhodecode.config.middleware:make_pyramid_app',
229 230 'pylons=rhodecode.config.middleware:make_app',
230 231 ],
231 232 'paste.app_install': [
232 233 'main=pylons.util:PylonsInstaller',
233 234 'pylons=pylons.util:PylonsInstaller',
234 235 ],
235 236 'paste.global_paster_command': [
236 237 'make-config=rhodecode.lib.paster_commands.make_config:Command',
237 238 'setup-rhodecode=rhodecode.lib.paster_commands.setup_rhodecode:Command',
238 239 'ishell=rhodecode.lib.paster_commands.ishell:Command',
239 240 'upgrade-db=rhodecode.lib.dbmigrate:UpgradeDb',
240 241 'celeryd=rhodecode.lib.celerypylons.commands:CeleryDaemonCommand',
241 242 ],
242 243 'pytest11': [
243 244 'pylons=rhodecode.tests.pylons_plugin',
244 245 'enterprise=rhodecode.tests.plugin',
245 246 ],
246 247 'console_scripts': [
247 248 'rcserver=rhodecode.rcserver:main',
248 249 ],
249 250 'beaker.backends': [
250 251 'memorylru_base=rhodecode.lib.memory_lru_debug:MemoryLRUNamespaceManagerBase',
251 252 'memorylru_debug=rhodecode.lib.memory_lru_debug:MemoryLRUNamespaceManagerDebug'
252 253 ]
253 254 },
254 255 )
General Comments 0
You need to be logged in to leave comments. Login now