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 blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # added 2020-11-29
37 bt_proximity = bt-proximity; # added 2021-07-02
38 bugseverywhere = throw "bugseverywhere has been removed: Abandoned by upstream."; # added 2019-11-27
39 class-registry = phx-class-registry; # added 2021-10-05
40 ConfigArgParse = configargparse; # added 2021-03-18
41 dateutil = python-dateutil; # added 2021-07-03
42 detox = throw "detox is no longer maintained, and was broken since may 2019"; # added 2020-07-04
43 dftfit = throw "dftfit dependency lammps-cython no longer builds"; # added 2021-07-04
44 diff_cover = diff-cover; # added 2021-07-02
45 discogs_client = discogs-client; # added 2021-07-02
46 djangorestframework-jwt = drf-jwt; # added 2021-07-20
47 django_redis = django-redis; # added 2021-10-11
48 django_taggit = django-taggit; # added 2021-10-11
49 dns = dnspython; # added 2017-12-10
50 dogpile_cache = dogpile-cache; # added 2021-10-28
51 dogpile-core = throw "dogpile-core is no longer maintained, use dogpile-cache instead"; # added 2021-11-20
52 faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12
53 gitdb2 = throw "gitdb2 has been deprecated, use gitdb instead."; # added 2020-03-14
54 glances = throw "glances has moved to pkgs.glances"; # added 2020-20-28
55 google_api_python_client = google-api-python-client; # added 2021-03-19
56 googleapis_common_protos = googleapis-common-protos; # added 2021-03-19
57 grpc_google_iam_v1 = grpc-google-iam-v1; # added 2021-08-21
58 HAP-python = hap-python; # added 2021-06-01
59 hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07
60 IMAPClient = imapclient; # added 2021-10-28
61 jupyter_client = jupyter-client; # added 2021-10-15
62 lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
63 MechanicalSoup = mechanicalsoup; # added 2021-06-01
64 pam = python-pam; # added 2020-09-07.
65 PasteDeploy = pastedeploy; # added 2021-10-07
66 powerlineMemSegment = powerline-mem-segment; # added 2021-10-08
67 privacyidea = throw "privacyidea has been renamed to pkgs.privacyidea"; # added 2021-06-20
68 prometheus_client = prometheus-client; # added 2021-06-10
69 prompt_toolkit = prompt-toolkit; # added 2021-07-22
70 pur = throw "pur has been renamed to pkgs.pur"; # added 2021-11-08
71 pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20
72 pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04
73 pysmart-smartx = pysmart; # added 2021-10-22
74 pytestcov = pytest-cov; # added 2021-01-04
75 pytest-pep8 = pytestpep8; # added 2021-01-04
76 pytestpep8 = throw "pytestpep8 was removed because it is abandoned and no longer compatible with pytest v6.0"; # added 2020-12-10
77 pytestquickcheck = pytest-quickcheck; # added 2021-07-20
78 pytestrunner = pytest-runner; # added 2021-01-04
79 python-igraph = igraph; # added 2021-11-11
80 python-lz4 = lz4; # added 2018-06-01
81 python_mimeparse = python-mimeparse; # added 2021-10-31
82 python-subunit = subunit; # added 2021-09-10
83 pytest_xdist = pytest-xdist; # added 2021-01-04
84 python_simple_hipchat = python-simple-hipchat; # added 2021-07-21
85 qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
86 rdflib-jsonld = throw "rdflib-jsonld is not compatible with rdflib 6"; # added 2021-11-05
87 requests_toolbelt = requests-toolbelt; # added 2017-09-26
88 rotate-backups = throw "rotate-backups was removed in favor of the top-level rotate-backups"; # added 2021-07-01
89 ruamel_base = ruamel-base; # added 2021-11-01
90 ruamel_yaml = ruamel-yaml; # added 2021-11-01
91 ruamel_yaml_clib = ruamel-yaml-clib; # added 2021-11-01
92 scikitlearn = scikit-learn; # added 2021-07-21
93 selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10
94 setuptools_scm = setuptools-scm; # added 2021-06-03
95 smart_open = smart-open; # added 2021-03-14
96 smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14
97 sphinxcontrib_plantuml = sphinxcontrib-plantuml; # added 2021-08-02
98 sqlalchemy_migrate = sqlalchemy-migrate; # added 2021-10-28
99 topydo = throw "topydo was moved to pkgs.topydo"; # added 2017-09-22
100 tvnamer = throw "tvnamer was moved to pkgs.tvnamer"; # added 2021-07-05
101 WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29
102 websocket_client = websocket-client; # added 2021-06-15
103 zc-buildout221 = zc-buildout; # added 2021-07-21
104})