core/pkgs/by-name/py/python/packages.nix

97 lines
2.8 KiB
Nix
Raw Permalink Normal View History

2024-05-02 00:46:19 +00:00
{ ... }:
res: pkgs: super:
2024-08-17 16:38:04 +00:00
with pkgs; {
2024-05-02 00:46:19 +00:00
pythonInterpreters = callPackage ./. { };
2024-08-17 16:38:04 +00:00
inherit (pythonInterpreters)
python27
python39
python310
python311
python312
python313
python3Minimal
pypy27
pypy310
pypy39
rustpython
;
2024-05-02 00:46:19 +00:00
# List of extensions with overrides to apply to all Python package sets.
pythonPackagesExtensions = [ ];
# Python package sets.
2024-08-17 16:38:04 +00:00
python27Packages = python27.pkgs // {
__attrsFailEvaluation = true;
};
python39Packages = python39.pkgs // {
__attrsFailEvaluation = true;
};
python310Packages = python310.pkgs // {
__attrsFailEvaluation = true;
};
python311Packages = recurseIntoAttrs python311.pkgs // {
pythonPackages = python311.pkgs // {
__attrsFailEvaluation = true;
};
};
python312Packages = recurseIntoAttrs python312.pkgs // {
pythonPackages = python312.pkgs // {
__attrsFailEvaluation = true;
};
};
python313Packages = python313.pkgs // {
__attrsFailEvaluation = true;
};
pypyPackages = pypy.pkgs // {
__attrsFailEvaluation = true;
};
pypy2Packages = pypy2.pkgs // {
__attrsFailEvaluation = true;
};
pypy27Packages = pypy27.pkgs // {
__attrsFailEvaluation = true;
};
pypy3Packages = pypy3.pkgs // {
__attrsFailEvaluation = true;
};
pypy39Packages = pypy39.pkgs // {
__attrsFailEvaluation = true;
};
pypy310Packages = pypy310.pkgs // {
__attrsFailEvaluation = true;
};
2024-05-02 00:46:19 +00:00
# Python interpreters. All standard library modules are included except for tkinter, which is
# available as `pythonPackages.tkinter` and can be used as any other Python package.
# When switching these sets, please update docs at ../../doc/languages-frameworks/python.md
python2 = python27;
2024-08-17 16:38:04 +00:00
python3 = python312;
2024-05-02 00:46:19 +00:00
# pythonPackages further below, but assigned here because they need to be in sync
python2Packages = dontRecurseIntoAttrs python27Packages;
python3Packages = dontRecurseIntoAttrs python311Packages;
# Should eventually be moved inside Python interpreters.
python-setup-hook = buildPackages.callPackage ./setup-hook.nix { };
update-python-libraries = callPackage ./update-python-libraries { };
2024-08-17 16:38:04 +00:00
docutils =
with python3Packages;
toPythonApplication (
docutils.overridePythonAttrs (attrs: rec {
version = "0.20.1";
src = attrs.src.override {
inherit version;
hash = "sha256-8IpOJ2w6FYOobc4+NKuj/gTQK7ot1R7RYQYkToqSPjs=";
};
})
);
2024-05-02 00:46:19 +00:00
actdiag = with python3.pkgs; toPythonApplication actdiag;
blockdiag = with python3Packages; toPythonApplication blockdiag;
nwdiag = with python3Packages; toPythonApplication nwdiag;
buildcatrust = with python3.pkgs; toPythonApplication buildcatrust;
seqdiag = with python3Packages; toPythonApplication seqdiag;
}