1lib: self: super:
2
3with self;
4
5let
6 # Removing recurseForDerivation prevents derivations of aliased attribute
7 # set to appear while listing all the packages available.
8 removeRecurseForDerivations = alias: with lib;
9 if alias.recurseForDerivations or false then
10 removeAttrs alias ["recurseForDerivations"]
11 else alias;
12
13 # Disabling distribution prevents top-level aliases for non-recursed package
14 # sets from building on Hydra.
15 removeDistribute = alias: with lib;
16 if isDerivation alias then
17 dontDistribute alias
18 else alias;
19
20 # Make sure that we are not shadowing something from
21 # python-packages.nix.
22 checkInPkgs = n: alias: if builtins.hasAttr n super
23 then throw "Alias ${n} is still in python-packages.nix"
24 else alias;
25
26 mapAliases = aliases:
27 lib.mapAttrs (n: alias: removeDistribute
28 (removeRecurseForDerivations
29 (checkInPkgs n alias)))
30 aliases;
31in
32
33 ### Deprecated aliases - for backward compatibility
34
35mapAliases ({
36 aioh2 = throw "aioh2 has been removed because it is abandoned and broken."; # Added 2022-03-30
37 ansible-base = throw "ansible-base has been removed, because it is end of life"; # added 2022-03-30
38 anyjson = throw "anyjson has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
39 argon2_cffi = argon2-cffi; # added 2022-05-09
40 asyncio-nats-client = nats-py; # added 2022-02-08
41 Babel = babel; # added 2022-05-06
42 bitcoin-price-api = throw "bitcoin-price-api has been removed, it was using setuptools 2to3 translation feautre, which has been removed in setuptools 58"; # added 2022-02-15
43 blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # added 2020-11-29
44 bt_proximity = bt-proximity; # added 2021-07-02
45 carrot = throw "carrot has been removed, as its development was discontinued in 2012"; # added 2022-01-18
46 class-registry = phx-class-registry; # added 2021-10-05
47 ConfigArgParse = configargparse; # added 2021-03-18
48 cozy = throw "cozy was removed because it was not actually https://pypi.org/project/Cozy/."; # added 2022-01-14
49 cryptography_vectors = "cryptography_vectors is no longer exposed in python*Packages because it is used for testing cryptography only."; # Added 2022-03-23
50 dateutil = python-dateutil; # added 2021-07-03
51 demjson = throw "demjson has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
52 detox = throw "detox is no longer maintained, and was broken since may 2019"; # added 2020-07-04
53 dftfit = throw "dftfit dependency lammps-cython no longer builds"; # added 2021-07-04
54 diff_cover = diff-cover; # added 2021-07-02
55 discogs_client = discogs-client; # added 2021-07-02
56 djangorestframework-jwt = drf-jwt; # added 2021-07-20
57 django_2 = throw "Django 2 has reached it's projected EOL in 2022/04 and has therefore been removed."; # added 2022-03-05
58 django_appconf = django-appconf; # added 2022-03-03
59 django_environ = django-environ; # added 2021-12-25
60 django_extensions = django-extensions; # added 2022-01-09
61 django_modelcluster = django-modelcluster; # added 2022-04-02
62 django_redis = django-redis; # added 2021-10-11
63 django_taggit = django-taggit; # added 2021-10-11
64 dns = dnspython; # added 2017-12-10
65 dogpile_cache = dogpile-cache; # added 2021-10-28
66 dogpile-core = throw "dogpile-core is no longer maintained, use dogpile-cache instead"; # added 2021-11-20
67 eebrightbox = throw "eebrightbox is unmaintained upstream and has therefore been removed"; # added 2022-02-03
68 faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12
69 flask_testing = flask-testing; # added 2022-04-25
70 garminconnect-ha = garminconnect; # added 2022-02-05
71 gitdb2 = throw "gitdb2 has been deprecated, use gitdb instead."; # added 2020-03-14
72 glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28
73 google_api_python_client = google-api-python-client; # added 2021-03-19
74 googleapis_common_protos = googleapis-common-protos; # added 2021-03-19
75 grpc_google_iam_v1 = grpc-google-iam-v1; # added 2021-08-21
76 ha-av = throw "ha-av was removed, because it is no longer maintained"; # added 2022-04-06
77 HAP-python = hap-python; # added 2021-06-01
78 hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07
79 hdlparse = throw "hdlparse has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
80 hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29
81 IMAPClient = imapclient; # added 2021-10-28
82 jupyter_client = jupyter-client; # added 2021-10-15
83 Keras = keras; # added 2021-11-25
84 lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
85 loo-py = loopy; # added 2022-05-03
86 Markups = markups; # added 2022-02-14
87 MechanicalSoup = mechanicalsoup; # added 2021-06-01
88 memcached = python-memcached; # added 2022-05-06
89 mailman = throw "Please use pkgs.mailman"; # added 2022-04-29
90 mailman-hyperkitty = throw "Please use pkgs.mailmanPackages.mailman-hyperkitty"; # added 2022-04-29
91 mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29
92 net2grid = gridnet; # add 2022-04-22
93 nose-cover3 = throw "nose-cover3 has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-02-16
94 pam = python-pam; # added 2020-09-07.
95 PasteDeploy = pastedeploy; # added 2021-10-07
96 pathpy = path; # added 2022-04-12
97 pep257 = pydocstyle; # added 2022-04-12
98 postorius = throw "Please use pkgs.mailmanPackages.postorius"; # added 2022-04-29
99 powerlineMemSegment = powerline-mem-segment; # added 2021-10-08
100 privacyidea = throw "privacyidea has been renamed to pkgs.privacyidea"; # added 2021-06-20
101 prometheus_client = prometheus-client; # added 2021-06-10
102 prompt_toolkit = prompt-toolkit; # added 2021-07-22
103 pur = throw "pur has been renamed to pkgs.pur"; # added 2021-11-08
104 pyGtkGlade = throw "Glade support for pygtk has been removed"; # added 2022-01-15
105 pycallgraph = throw "pycallgraph has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18
106 pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20
107 pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04
108 pysmart-smartx = pysmart; # added 2021-10-22
109 pytest_6 = pytest; # added 2022-02-10
110 pytestcov = pytest-cov; # added 2021-01-04
111 pytest-pep8 = pytestpep8; # added 2021-01-04
112 pytest-pep257 = throw "pytest-pep257 was removed, as the pep257 package was migrated into pycodestyle"; # added 2022-04-12
113 pytest-pythonpath = throw "pytest-pythonpath is obsolete as of pytest 7.0.0 and has been removed"; # added 2022-03-09
114 pytestpep8 = throw "pytestpep8 was removed because it is abandoned and no longer compatible with pytest v6.0"; # added 2020-12-10
115 pytestquickcheck = pytest-quickcheck; # added 2021-07-20
116 pytestrunner = pytest-runner; # added 2021-01-04
117 python-igraph = igraph; # added 2021-11-11
118 python-lz4 = lz4; # added 2018-06-01
119 python_magic = python-magic; # added 2022-05-07
120 python_mimeparse = python-mimeparse; # added 2021-10-31
121 python-subunit = subunit; # added 2021-09-10
122 pytest_xdist = pytest-xdist; # added 2021-01-04
123 python_simple_hipchat = python-simple-hipchat; # added 2021-07-21
124 pytwitchapi = twitchapi; # added 2022-03-07
125 qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
126 qiskit-aqua = throw "qiskit-aqua has been removed due to deprecation, with its functionality moved to different qiskit packages";
127 rdflib-jsonld = throw "rdflib-jsonld is not compatible with rdflib 6"; # added 2021-11-05
128 repeated_test = throw "repeated_test is no longer maintained"; # added 2022-01-11
129 requests_oauthlib = requests-oauthlib; # added 2022-02-12
130 requests_toolbelt = requests-toolbelt; # added 2017-09-26
131 roboschool = throw "roboschool is deprecated in favor of PyBullet and has been removed"; # added 2022-01-15
132 ROPGadget = ropgadget; # added 2021-07-06
133 rotate-backups = throw "rotate-backups was removed in favor of the top-level rotate-backups"; # added 2021-07-01
134 ruamel_base = ruamel-base; # added 2021-11-01
135 ruamel_yaml = ruamel-yaml; # added 2021-11-01
136 ruamel_yaml_clib = ruamel-yaml-clib; # added 2021-11-01
137 sapi-python-client = kbcstorage; # added 2022-04-20
138 scikitlearn = scikit-learn; # added 2021-07-21
139 selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10
140 setuptools_scm = setuptools-scm; # added 2021-06-03
141 sharkiqpy = sharkiq; # added 2022-05-21
142 smart_open = smart-open; # added 2021-03-14
143 smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14
144 SPARQLWrapper = sparqlwrapper;
145 sphinxcontrib_plantuml = sphinxcontrib-plantuml; # added 2021-08-02
146 sqlalchemy_migrate = sqlalchemy-migrate; # added 2021-10-28
147 SQLAlchemy-ImageAttach = throw "sqlalchemy-imageattach has been removed as it is incompatible with sqlalchemy 1.4 and unmaintained"; # added 2022-04-23
148 tensorflow-bin_2 = tensorflow-bin; # added 2021-11-25
149 tensorflow-build_2 = tensorflow-build; # added 2021-11-25
150 tensorflow-estimator_2 = tensorflow-estimator; # added 2021-11-25
151 tensorflow-tensorboard = tensorboard; # added 2022-03-06
152 tensorflow-tensorboard_2 = tensorflow-tensorboard; # added 2021-11-25
153 tvnamer = throw "tvnamer was moved to pkgs.tvnamer"; # added 2021-07-05
154 WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29
155 websocket_client = websocket-client; # added 2021-06-15
156 xenomapper = throw "xenomapper was moved to pkgs.xenomapper"; # added 2021-12-31
157 zc-buildout221 = zc-buildout; # added 2021-07-21
158 zc_buildout_nix = throw "zc_buildout_nix was pinned to a version no longer compatible with other modules";
159})