2021-03-15 01:00:14 +01:00
|
|
|
lib: self: super:
|
|
|
|
|
|
|
|
with self;
|
|
|
|
|
|
|
|
let
|
|
|
|
# Removing recurseForDerivation prevents derivations of aliased attribute
|
|
|
|
# set to appear while listing all the packages available.
|
|
|
|
removeRecurseForDerivations = alias: with lib;
|
|
|
|
if alias.recurseForDerivations or false then
|
|
|
|
removeAttrs alias ["recurseForDerivations"]
|
|
|
|
else alias;
|
|
|
|
|
|
|
|
# Disabling distribution prevents top-level aliases for non-recursed package
|
|
|
|
# sets from building on Hydra.
|
|
|
|
removeDistribute = alias: with lib;
|
|
|
|
if isDerivation alias then
|
|
|
|
dontDistribute alias
|
|
|
|
else alias;
|
|
|
|
|
|
|
|
# Make sure that we are not shadowing something from
|
|
|
|
# python-packages.nix.
|
|
|
|
checkInPkgs = n: alias: if builtins.hasAttr n super
|
|
|
|
then throw "Alias ${n} is still in python-packages.nix"
|
|
|
|
else alias;
|
|
|
|
|
|
|
|
mapAliases = aliases:
|
|
|
|
lib.mapAttrs (n: alias: removeDistribute
|
|
|
|
(removeRecurseForDerivations
|
|
|
|
(checkInPkgs n alias)))
|
|
|
|
aliases;
|
|
|
|
in
|
|
|
|
|
|
|
|
### Deprecated aliases - for backward compatibility
|
|
|
|
|
|
|
|
mapAliases ({
|
2021-06-12 19:08:21 +02:00
|
|
|
blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # Added 2020-11-29
|
2021-07-20 23:24:25 +02:00
|
|
|
bt_proximity = bt-proximity; # added 2021-07-02
|
2021-06-12 19:08:21 +02:00
|
|
|
bugseverywhere = throw "bugseverywhere has been removed: Abandoned by upstream."; # Added 2019-11-27
|
2021-07-20 23:26:16 +02:00
|
|
|
ConfigArgParse = configargparse; # added 2021-03-18
|
2021-07-03 13:24:04 +02:00
|
|
|
dateutil = python-dateutil; # added 2021-07-03
|
2021-06-12 19:08:21 +02:00
|
|
|
detox = throw "detox is no longer maintained, and was broken since may 2019"; # added 2020-07-04
|
2021-07-04 19:35:06 +02:00
|
|
|
dftfit = throw "it's dependency lammps-cython no longer builds";
|
2021-07-02 21:58:04 +02:00
|
|
|
diff_cover = diff-cover; # added 2021-07-02
|
|
|
|
discogs_client = discogs-client; # added 2021-07-02
|
2021-07-20 23:27:12 +02:00
|
|
|
djangorestframework-jwt = drf-jwt;
|
2021-06-22 23:38:50 +02:00
|
|
|
dns = dnspython; # Alias for compatibility, 2017-12-10
|
2021-06-12 19:08:21 +02:00
|
|
|
faulthandler = throw "faulthandler is built into ${python.executable}";
|
|
|
|
gitdb2 = throw "gitdb2 has been deprecated, use gitdb instead."; # added 2020-03-14
|
|
|
|
glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28
|
2021-03-19 18:16:18 +01:00
|
|
|
google_api_python_client = google-api-python-client; # added 2021-03-19
|
|
|
|
googleapis_common_protos = googleapis-common-protos; # added 2021-03-19
|
2021-08-16 12:54:23 +02:00
|
|
|
grpc_google_iam_v1 = grpc-google-iam-v1; # added 2021-08-21
|
2021-06-01 12:23:40 +02:00
|
|
|
HAP-python = hap-python; # added 2021-06-01
|
2021-07-04 19:35:06 +02:00
|
|
|
lammps-cython = throw "no longer builds and is unmaintained";
|
2021-06-03 12:09:11 +02:00
|
|
|
MechanicalSoup = mechanicalsoup; # added 2021-06-01
|
2021-06-10 11:53:03 +02:00
|
|
|
pam = python-pam; # added 2020-09-07.
|
2021-06-20 23:12:11 +02:00
|
|
|
privacyidea = throw "renamed to pkgs.privacyidea"; # added 2021-06-20
|
2021-06-10 11:53:03 +02:00
|
|
|
prometheus_client = prometheus-client; # added 2021-06-10
|
2021-07-22 17:02:31 +02:00
|
|
|
prompt_toolkit = prompt-toolkit;
|
2021-06-12 19:08:21 +02:00
|
|
|
pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20
|
|
|
|
pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04
|
2021-07-20 22:42:24 +02:00
|
|
|
pytestcov = pytest-cov; # added 2021-01-04
|
2021-06-12 19:08:21 +02:00
|
|
|
pytest-pep8 = pytestpep8; # added 2021-01-04
|
|
|
|
pytestpep8 = throw "pytestpep8 was removed because it is abandoned and no longer compatible with pytest v6.0"; # added 2020-12-10
|
2021-07-20 23:08:40 +02:00
|
|
|
pytestquickcheck = pytest-quickcheck; # added 2021-07-20
|
2021-07-20 23:07:53 +02:00
|
|
|
pytestrunner = pytest-runner; # added 2021-01-04
|
2021-07-27 14:22:45 +02:00
|
|
|
python-lz4 = lz4; # added 2018-06-01
|
2021-09-11 12:16:44 +02:00
|
|
|
python-subunit = subunit; # added 2021-09-10
|
2021-07-20 23:08:56 +02:00
|
|
|
pytest_xdist = pytest-xdist; # added 2021-01-04
|
2021-07-20 23:19:21 +02:00
|
|
|
python_simple_hipchat = python-simple-hipchat; # added 2021-07-21
|
2021-06-12 19:08:21 +02:00
|
|
|
qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
|
2021-07-20 23:21:18 +02:00
|
|
|
requests_toolbelt = requests-toolbelt; # added 2017-09-26
|
2021-07-01 18:12:31 +02:00
|
|
|
rotate-backups = throw "pythonPackages.rotate-backups was removed in favor of the top-level rotate-backups"; # added 2021-07-01
|
2021-07-20 23:22:39 +02:00
|
|
|
scikitlearn = scikit-learn; # added 2021-07-21
|
2021-05-29 22:40:21 +02:00
|
|
|
selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # Added 2021-06-10
|
2021-06-03 12:09:11 +02:00
|
|
|
setuptools_scm = setuptools-scm; # added 2021-06-03
|
2021-06-12 19:08:21 +02:00
|
|
|
smart_open = smart-open; # added 2021-03-14
|
|
|
|
smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14
|
2021-08-02 16:24:42 +02:00
|
|
|
sphinxcontrib_plantuml = sphinxcontrib-plantuml;
|
2021-06-12 19:08:21 +02:00
|
|
|
topydo = throw "python3Packages.topydo was moved to topydo"; # 2017-09-22
|
2021-07-05 08:09:24 +02:00
|
|
|
tvnamer = throw "python3Packages.tvnamer was moved to tvnamer"; # 2021-07-05
|
2021-09-29 16:20:27 +02:00
|
|
|
WazeRouteCalculator = wazeroutecalculator; # 2021-09-29
|
2021-06-15 13:12:45 +02:00
|
|
|
websocket_client = websocket-client;
|
2021-07-20 23:24:38 +02:00
|
|
|
zc_buildout221 = zc_buildout; # added 2021-07-21
|
2021-03-15 01:00:14 +01:00
|
|
|
})
|