Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 233 lines 17 kB view raw
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 awkward0 = throw "awkward0 has been removed, use awkward instead"; # added 2022-12-13 42 Babel = babel; # added 2022-05-06 43 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 44 blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # added 2020-11-29 45 bsblan = python-bsblan; # added 2022-11-04 46 bt_proximity = bt-proximity; # added 2021-07-02 47 carrot = throw "carrot has been removed, as its development was discontinued in 2012"; # added 2022-01-18 48 class-registry = phx-class-registry; # added 2021-10-05 49 codespell = throw "codespell has been promoted to a top-level attribute"; # Added 2022-10-02 50 ConfigArgParse = configargparse; # added 2021-03-18 51 cozy = throw "cozy was removed because it was not actually https://pypi.org/project/Cozy/."; # added 2022-01-14 52 cryptography_vectors = "cryptography_vectors is no longer exposed in python*Packages because it is used for testing cryptography only."; # Added 2022-03-23 53 dask-xgboost = throw "dask-xgboost was removed because its features are available in xgboost"; # added 2022-05-24 54 dateutil = python-dateutil; # added 2021-07-03 55 demjson = throw "demjson has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 56 detox = throw "detox is no longer maintained, and was broken since may 2019"; # added 2020-07-04 57 dftfit = throw "dftfit dependency lammps-cython no longer builds"; # added 2021-07-04 58 diff_cover = diff-cover; # added 2021-07-02 59 discogs_client = discogs-client; # added 2021-07-02 60 djangorestframework-jwt = drf-jwt; # added 2021-07-20 61 django-sampledatahelper = throw "django-sampledatahelper was removed because it is no longer compatible to latest Django version"; # added 2022-07-18 62 django_2 = throw "Django 2 has reached it's projected EOL in 2022/04 and has therefore been removed."; # added 2022-03-05 63 django_appconf = django-appconf; # added 2022-03-03 64 django-discover-runner = throw "django-discover-runner was removed because it is no longer maintained."; # added 2022-11-21 65 django_environ = django-environ; # added 2021-12-25 66 django_extensions = django-extensions; # added 2022-01-09 67 django_guardian = django-guardian; # added 2022-05-19 68 django_modelcluster = django-modelcluster; # added 2022-04-02 69 django_reversion = django-reversion; # added 2022-06-18 70 django_polymorphic = django-polymorphic; # added 2022-05-24 71 django_redis = django-redis; # added 2021-10-11 72 django_taggit = django-taggit; # added 2021-10-11 73 dns = dnspython; # added 2017-12-10 74 dogpile_cache = dogpile-cache; # added 2021-10-28 75 dogpile-core = throw "dogpile-core is no longer maintained, use dogpile-cache instead"; # added 2021-11-20 76 eebrightbox = throw "eebrightbox is unmaintained upstream and has therefore been removed"; # added 2022-02-03 77 email_validator = email-validator; # added 2022-06-22 78 face_recognition = face-recognition; # added 2022-10-15 79 face_recognition_models = face-recognition-models; # added 2022-10-15 80 fake_factory = throw "fake_factory has been removed because it is unused and deprecated by upstream since 2016."; # added 2022-05-30 81 faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12 82 filemagic = throw "inactive since 2014, so use python-magic instead"; # added 2022-11-19 83 flask_login = flask-login; # added 2022-10-17 84 flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20 85 flask_testing = flask-testing; # added 2022-04-25 86 flask_wtf = flask-wtf; # added 2022-05-24 87 functorch = throw "functorch is now part of the torch package and has therefore been removed. See https://github.com/pytorch/functorch/releases/tag/v1.13.0 for more info."; # added 2022-12-01 88 garminconnect-ha = garminconnect; # added 2022-02-05 89 gigalixir = throw "gigalixir has been promoted to a top-level attribute"; # Added 2022-10-02 90 gitdb2 = throw "gitdb2 has been deprecated, use gitdb instead."; # added 2020-03-14 91 GitPython = gitpython; # added 2022-10-28 92 glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28 93 google_api_python_client = google-api-python-client; # added 2021-03-19 94 googleapis_common_protos = googleapis-common-protos; # added 2021-03-19 95 graphite_api = throw "graphite_api was removed, because it is no longer maintained"; # added 2022-07-10 96 graphite_beacon = throw "graphite_beacon was removed, because it is no longer maintained"; # added 2022-07-09 97 grpc_google_iam_v1 = grpc-google-iam-v1; # added 2021-08-21 98 ha-av = throw "ha-av was removed, because it is no longer maintained"; # added 2022-04-06 99 HAP-python = hap-python; # added 2021-06-01 100 hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07 101 hdlparse = throw "hdlparse has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 102 hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29 103 IMAPClient = imapclient; # added 2021-10-28 104 imdbpy = throw "imdbpy has been renamed to cinemagoer"; # added 2022-08-08 105 ipaddress = throw "ipaddress has been removed because it is no longer required since python 2.7."; # added 2022-05-30 106 influxgraph = throw "influxgraph has been removed because it is no longer maintained"; # added 2022-07-10 107 itanium_demangler = itanium-demangler; # added 2022-1017 108 jinja2_time = jinja2-time; # added 2022-11-07 109 jupyter_client = jupyter-client; # added 2021-10-15 110 Keras = keras; # added 2021-11-25 111 ldap = python-ldap; # added 2022-09-16 112 lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04 113 logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29 114 logilab_common = logilab-common; # added 2022-11-21 115 loo-py = loopy; # added 2022-05-03 116 Markups = markups; # added 2022-02-14 117 MechanicalSoup = mechanicalsoup; # added 2021-06-01 118 memcached = python-memcached; # added 2022-05-06 119 mailman = throw "Please use pkgs.mailman"; # added 2022-04-29 120 mailman-hyperkitty = throw "Please use pkgs.mailmanPackages.mailman-hyperkitty"; # added 2022-04-29 121 mailman-web = throw "Please use pkgs.mailman-web"; # added 2022-04-29 122 mistune_0_8 = throw "mistune_0_8 was removed because it was outdated and insecure"; # added 2022-08-12 123 mistune_2_0 = mistune; # added 2022-08-12 124 mutmut = throw "mutmut has been promoted to a top-level attribute"; # added 2022-10-02 125 net2grid = gridnet; # add 2022-04-22 126 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 127 notifymuch = throw "notifymuch has been promoted to a top-level attribute"; # added 2022-10-02 128 ordereddict = throw "ordereddict has been removed because it is only useful on unsupported python versions."; # added 2022-05-28 129 pam = python-pam; # added 2020-09-07. 130 PasteDeploy = pastedeploy; # added 2021-10-07 131 pathpy = path; # added 2022-04-12 132 pdfminer = pdfminer-six; # added 2022-05-25 133 pep257 = pydocstyle; # added 2022-04-12 134 poetry2conda = throw "poetry2conda was promoted to a top-level attribute"; # Added 2022-10-02 135 poster3 = throw "poster3 is unmaintained and source is no longer available"; # added 2023-05-29 136 postorius = throw "Please use pkgs.mailmanPackages.postorius"; # added 2022-04-29 137 powerlineMemSegment = powerline-mem-segment; # added 2021-10-08 138 privacyidea = throw "privacyidea has been renamed to pkgs.privacyidea"; # added 2021-06-20 139 prometheus_client = prometheus-client; # added 2021-06-10 140 prompt_toolkit = prompt-toolkit; # added 2021-07-22 141 protonup = protonup-ng; # Added 2022-11-06 142 pur = throw "pur has been renamed to pkgs.pur"; # added 2021-11-08 143 pushbullet = pushbullet-py; # Added 2022-10-15 144 pydrive = throw "pydrive is broken and deprecated and has been replaced with pydrive2."; # added 2022-06-01 145 pyGtkGlade = throw "Glade support for pygtk has been removed"; # added 2022-01-15 146 pycallgraph = throw "pycallgraph has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 147 pychef = throw "pychef has been removed because it's been archived upstream and abandoned since 2017."; # added 2022-11-14 148 pycryptodome-test-vectors = throw "pycryptodome-test-vectors has been removed because it is an internal package to pycryptodome"; # added 2022-05-28 149 pyialarmxr = pyialarmxr-homeassistant; # added 2022-06-07 150 pyialarmxr-homeassistant = throw "The package was removed together with the component support in home-assistant 2022.7.0"; # added 2022-07-07 151 pyjson5 = json5; # added 2022-08-28 152 pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20 153 PyLD = pyld; # added 2022-06-22 154 pymc3 = pymc; # added 2022-06-05, module was rename starting with 4.0.0 155 pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04 156 pyreadability = readability-lxml; # added 2022-05-24 157 pyroute2-core = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 158 pyroute2-ethtool = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 159 pyroute2-ipdb = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 160 pyroute2-ipset = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 161 pyroute2-ndb = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 162 pyroute2-nftables = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 163 pyroute2-nslink = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 164 pyroute2-protocols = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16 165 pysmart-smartx = pysmart; # added 2021-10-22 166 pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29 167 pytest_6 = pytest; # added 2022-02-10 168 pytestcov = pytest-cov; # added 2021-01-04 169 pytest-pep8 = pytestpep8; # added 2021-01-04 170 pytest-pep257 = throw "pytest-pep257 was removed, as the pep257 package was migrated into pycodestyle"; # added 2022-04-12 171 pytest-pythonpath = throw "pytest-pythonpath is obsolete as of pytest 7.0.0 and has been removed"; # added 2022-03-09 172 pytestpep8 = throw "pytestpep8 was removed because it is abandoned and no longer compatible with pytest v6.0"; # added 2020-12-10 173 pytestquickcheck = pytest-quickcheck; # added 2021-07-20 174 pytestrunner = pytest-runner; # added 2021-01-04 175 python-igraph = igraph; # added 2021-11-11 176 python-lz4 = lz4; # added 2018-06-01 177 python_magic = python-magic; # added 2022-05-07 178 python_mimeparse = python-mimeparse; # added 2021-10-31 179 python-language-server = throw "python-language-server is no longer maintained, use the python-lsp-server community fork instead."; # Added 2022-08-03 180 python-subunit = subunit; # added 2021-09-10 181 pytest_xdist = pytest-xdist; # added 2021-01-04 182 python_simple_hipchat = python-simple-hipchat; # added 2021-07-21 183 pytorch = torch; # added 2022-09-30 184 pytorch-bin = torch-bin; # added 2022-09-30 185 pytorchWithCuda = torchWithCuda; # added 2022-09-30 186 pytorchWithoutCuda = torchWithoutCuda; # added 2022-09-30 187 pytwitchapi = twitchapi; # added 2022-03-07 188 qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09 189 qiskit-aqua = throw "qiskit-aqua has been removed due to deprecation, with its functionality moved to different qiskit packages"; 190 rdflib-jsonld = throw "rdflib-jsonld is not compatible with rdflib 6"; # added 2021-11-05 191 repeated_test = repeated-test; # added 2022-11-15 192 requests_oauthlib = requests-oauthlib; # added 2022-02-12 193 requests_toolbelt = requests-toolbelt; # added 2017-09-26 194 rig = throw "rig has been removed because it was pinned to python 2.7 and 3.5, failed to build and is otherwise unmaintained"; # added 2022-11-28 195 roboschool = throw "roboschool is deprecated in favor of PyBullet and has been removed"; # added 2022-01-15 196 ROPGadget = ropgadget; # added 2021-07-06 197 rotate-backups = throw "rotate-backups was removed in favor of the top-level rotate-backups"; # added 2021-07-01 198 ruamel_base = ruamel-base; # added 2021-11-01 199 ruamel_yaml = ruamel-yaml; # added 2021-11-01 200 ruamel_yaml_clib = ruamel-yaml-clib; # added 2021-11-01 201 sapi-python-client = kbcstorage; # added 2022-04-20 202 scikitlearn = scikit-learn; # added 2021-07-21 203 selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10 204 setuptools_scm = setuptools-scm; # added 2021-06-03 205 sharkiqpy = sharkiq; # added 2022-05-21 206 smart_open = smart-open; # added 2021-03-14 207 smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14 208 SPARQLWrapper = sparqlwrapper; 209 sphinx_rtd_theme = sphinx-rtd-theme; # added 2022-08-03 210 sphinxcontrib_plantuml = sphinxcontrib-plantuml; # added 2021-08-02 211 sqlalchemy_migrate = sqlalchemy-migrate; # added 2021-10-28 212 SQLAlchemy-ImageAttach = throw "sqlalchemy-imageattach has been removed as it is incompatible with sqlalchemy 1.4 and unmaintained"; # added 2022-04-23 213 tensorflow-bin_2 = tensorflow-bin; # added 2021-11-25 214 tensorflow-build_2 = tensorflow-build; # added 2021-11-25 215 tensorflow-estimator_2 = tensorflow-estimator; # added 2021-11-25 216 tensorflow-tensorboard = tensorboard; # added 2022-03-06 217 tensorflow-tensorboard_2 = tensorflow-tensorboard; # added 2021-11-25 218 tumpa = throw "tumpa was promoted to a top-level attribute"; # added 2022-11-19 219 tvnamer = throw "tvnamer was moved to pkgs.tvnamer"; # added 2021-07-05 220 types-cryptography = throw "types-cryptography has been removed because it is obsolete since cryptography version 3.4.4."; # added 2022-05-30 221 types-paramiko = throw "types-paramiko has been removed because it was unused."; # added 2022-05-30 222 unittest2 = throw "unittest2 has been removed as it's a backport of unittest that's unmaintained and not needed beyond Python 3.4."; # added 2022-12-01 223 uproot3 = throw "uproot3 has been removed, use uproot instead"; # added 2022-12-13 224 uproot3-methods = throw "uproot3-methods has been removed"; # added 2022-12-13 225 Wand = wand; # added 2022-11-13 226 WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29 227 weakrefmethod = throw "weakrefmethod was removed since it's not needed in Python >= 3.4"; # added 2022-12-01 228 webapp2 = throw "webapp2 is unmaintained since 2012"; # added 2022-05-29 229 websocket_client = websocket-client; # added 2021-06-15 230 xenomapper = throw "xenomapper was moved to pkgs.xenomapper"; # added 2021-12-31 231 zc-buildout221 = zc-buildout; # added 2021-07-21 232 zc_buildout_nix = throw "zc_buildout_nix was pinned to a version no longer compatible with other modules"; 233})