2022-10-15 01:47:23 +00:00
|
|
|
{ __splicedPackages
|
2022-10-15 01:46:04 +00:00
|
|
|
, callPackage
|
|
|
|
, config
|
|
|
|
, darwin
|
|
|
|
, db
|
|
|
|
, lib
|
|
|
|
, libffiBoot
|
2022-12-24 15:44:09 +00:00
|
|
|
, makeScopeWithSplicing
|
2022-10-15 01:46:04 +00:00
|
|
|
, pythonPackagesExtensions
|
|
|
|
, stdenv
|
|
|
|
}:
|
2018-12-31 12:59:20 +00:00
|
|
|
|
|
|
|
(let
|
|
|
|
|
|
|
|
# Common passthru for all Python interpreters.
|
|
|
|
passthruFun =
|
|
|
|
{ implementation
|
|
|
|
, libPrefix
|
|
|
|
, executable
|
|
|
|
, sourceVersion
|
|
|
|
, pythonVersion
|
|
|
|
, packageOverrides
|
|
|
|
, sitePackages
|
2019-04-18 02:57:20 +00:00
|
|
|
, hasDistutilsCxxPatch
|
2020-11-28 15:56:51 +00:00
|
|
|
, pythonOnBuildForBuild
|
|
|
|
, pythonOnBuildForHost
|
|
|
|
, pythonOnBuildForTarget
|
|
|
|
, pythonOnHostForHost
|
|
|
|
, pythonOnTargetForTarget
|
2022-07-20 06:45:47 +00:00
|
|
|
, pythonAttr ? null
|
2020-11-28 15:56:51 +00:00
|
|
|
, self # is pythonOnHostForTarget
|
2018-12-31 12:59:20 +00:00
|
|
|
}: let
|
2022-10-03 10:25:02 +00:00
|
|
|
pythonPackages = let
|
|
|
|
ensurePythonModules = items: let
|
2022-10-28 13:54:07 +00:00
|
|
|
exceptions = [
|
|
|
|
stdenv
|
|
|
|
];
|
2022-10-03 10:25:02 +00:00
|
|
|
providesSetupHook = lib.attrByPath [ "provides" "setupHook"] false;
|
python3.pkgs: fix splice through unsupported hosts
Previously, unless unsupported platforms were allowed, the following
would fail to evaluate (from an "x86_64-linux" system):
pkgsCross.x86_64-freebsd.__splicedPackages.docutils.__spliced.buildHost
It shouldn't have, because the buildHost package ends up being for
Linux. This broke evaluation of e.g. pkgsCross.x86_64-freebsd.libdrm,
because it has docutils in nativeBuildInputs. mkDerivation would try
to go through __spliced.buildHost on docutils to get to the Linux
version, but the check in ensurePythonModules would kick in first,
triggering the meta check because of the equality check in the
implementation of hasPythonModule, which would fail because Python is
not marked as supported on FreeBSD in Nixpkgs at the moment. Thus,
even though they're not supposed to be, the meta checks would be
triggered even though the only attribute being accessed on the
unsupported derivation was __spliced.
We can fix this by using the same mechanism used to implement the meta
checks themselves: lib.extendDerivation. Now, attempting to access
drvPath or outPath on an attribute that fails the validity check will
produce the same error as before, but other accesses will be allowed
through, fixing splicing.
I've tested evaluation of packages that pass and fail the validity
check, and confirmed that the behaviour is still correct.
2023-01-26 20:12:52 +00:00
|
|
|
valid = value: pythonPackages.hasPythonModule value || providesSetupHook value || lib.elem value exceptions;
|
|
|
|
func = name: value:
|
|
|
|
if lib.isDerivation value then
|
|
|
|
lib.extendDerivation (valid value || throw "${name} should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.") {} value
|
|
|
|
else
|
|
|
|
value;
|
2022-10-03 10:25:02 +00:00
|
|
|
in lib.mapAttrs func items;
|
|
|
|
in ensurePythonModules (callPackage
|
2022-07-20 06:45:47 +00:00
|
|
|
# Function that when called
|
|
|
|
# - imports python-packages.nix
|
|
|
|
# - adds spliced package sets to the package set
|
|
|
|
# - applies overrides from `packageOverrides` and `pythonPackagesOverlays`.
|
2020-11-18 17:13:11 +00:00
|
|
|
({ pkgs, stdenv, python, overrides }: let
|
2022-10-03 10:25:02 +00:00
|
|
|
pythonPackagesFun = import ./python-packages-base.nix {
|
2021-01-10 11:03:59 +00:00
|
|
|
inherit stdenv pkgs lib;
|
2020-11-18 17:13:11 +00:00
|
|
|
python = self;
|
|
|
|
};
|
|
|
|
otherSplices = {
|
2020-11-28 16:06:08 +00:00
|
|
|
selfBuildBuild = pythonOnBuildForBuild.pkgs;
|
|
|
|
selfBuildHost = pythonOnBuildForHost.pkgs;
|
|
|
|
selfBuildTarget = pythonOnBuildForTarget.pkgs;
|
|
|
|
selfHostHost = pythonOnHostForHost.pkgs;
|
|
|
|
selfTargetTarget = pythonOnTargetForTarget.pkgs or {}; # There is no Python TargetTarget.
|
2020-11-18 17:13:11 +00:00
|
|
|
};
|
2022-10-03 10:25:02 +00:00
|
|
|
hooks = import ./hooks/default.nix;
|
|
|
|
keep = lib.extends hooks pythonPackagesFun;
|
2021-05-04 04:08:20 +00:00
|
|
|
extra = _: {};
|
2023-02-14 18:11:59 +00:00
|
|
|
optionalExtensions = cond: as: lib.optionals cond as;
|
2022-10-03 10:25:02 +00:00
|
|
|
pythonExtension = import ../../../top-level/python-packages.nix;
|
2021-03-24 11:12:48 +00:00
|
|
|
python2Extension = import ../../../top-level/python2-packages.nix;
|
2022-10-03 10:25:02 +00:00
|
|
|
extensions = lib.composeManyExtensions ([
|
|
|
|
pythonExtension
|
|
|
|
] ++ (optionalExtensions (!self.isPy3k) [
|
|
|
|
python2Extension
|
|
|
|
]) ++ pythonPackagesExtensions ++ [
|
|
|
|
overrides
|
|
|
|
]);
|
2022-04-01 09:33:10 +00:00
|
|
|
aliases = self: super: lib.optionalAttrs config.allowAliases (import ../../../top-level/python-aliases.nix lib self super);
|
2022-12-24 15:44:09 +00:00
|
|
|
in makeScopeWithSplicing
|
2020-11-18 17:13:11 +00:00
|
|
|
otherSplices
|
|
|
|
keep
|
2021-05-04 04:08:20 +00:00
|
|
|
extra
|
2022-10-03 10:25:02 +00:00
|
|
|
(lib.extends (lib.composeExtensions aliases extensions) keep))
|
2020-11-18 17:13:11 +00:00
|
|
|
{
|
|
|
|
overrides = packageOverrides;
|
2021-07-27 18:34:44 +00:00
|
|
|
python = self;
|
2022-10-03 10:25:02 +00:00
|
|
|
});
|
2018-12-31 12:59:20 +00:00
|
|
|
in rec {
|
|
|
|
isPy27 = pythonVersion == "2.7";
|
|
|
|
isPy37 = pythonVersion == "3.7";
|
2019-10-15 04:49:46 +00:00
|
|
|
isPy38 = pythonVersion == "3.8";
|
2019-11-20 08:42:27 +00:00
|
|
|
isPy39 = pythonVersion == "3.9";
|
2020-10-13 06:28:25 +00:00
|
|
|
isPy310 = pythonVersion == "3.10";
|
2021-11-13 13:28:38 +00:00
|
|
|
isPy311 = pythonVersion == "3.11";
|
2022-11-28 14:56:53 +00:00
|
|
|
isPy312 = pythonVersion == "3.12";
|
2019-01-04 11:31:42 +00:00
|
|
|
isPy2 = lib.strings.substring 0 1 pythonVersion == "2";
|
|
|
|
isPy3 = lib.strings.substring 0 1 pythonVersion == "3";
|
|
|
|
isPy3k = isPy3;
|
2019-02-04 08:09:38 +00:00
|
|
|
isPyPy = lib.hasInfix "pypy" interpreter;
|
2018-12-31 12:59:20 +00:00
|
|
|
|
|
|
|
buildEnv = callPackage ./wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
|
|
|
|
withPackages = import ./with-packages.nix { inherit buildEnv pythonPackages;};
|
|
|
|
pkgs = pythonPackages;
|
|
|
|
interpreter = "${self}/bin/${executable}";
|
2019-01-02 19:09:44 +00:00
|
|
|
inherit executable implementation libPrefix pythonVersion sitePackages;
|
2018-12-31 12:59:20 +00:00
|
|
|
inherit sourceVersion;
|
|
|
|
pythonAtLeast = lib.versionAtLeast pythonVersion;
|
|
|
|
pythonOlder = lib.versionOlder pythonVersion;
|
2020-11-27 15:24:42 +00:00
|
|
|
inherit hasDistutilsCxxPatch;
|
2020-11-28 16:33:28 +00:00
|
|
|
# TODO: rename to pythonOnBuild
|
|
|
|
# Not done immediately because its likely used outside Nixpkgs.
|
2020-11-30 10:12:59 +00:00
|
|
|
pythonForBuild = pythonOnBuildForHost.override { inherit packageOverrides; self = pythonForBuild; };
|
2020-03-14 08:48:06 +00:00
|
|
|
|
|
|
|
tests = callPackage ./tests.nix {
|
|
|
|
python = self;
|
|
|
|
};
|
2022-07-20 06:45:47 +00:00
|
|
|
|
|
|
|
inherit pythonAttr;
|
2018-12-31 12:59:20 +00:00
|
|
|
};
|
2021-03-14 14:43:38 +00:00
|
|
|
|
|
|
|
sources = {
|
2022-01-15 08:50:35 +00:00
|
|
|
python310 = {
|
|
|
|
sourceVersion = {
|
|
|
|
major = "3";
|
|
|
|
minor = "10";
|
2023-04-05 21:57:11 +00:00
|
|
|
patch = "11";
|
2022-01-15 08:50:35 +00:00
|
|
|
suffix = "";
|
|
|
|
};
|
2023-04-05 21:57:11 +00:00
|
|
|
hash = "sha256-PDvDBIMDchyQSgPrgya2Mekh8RzDvimIRWpC8RXa8Ew=";
|
2021-03-13 14:31:22 +00:00
|
|
|
};
|
2023-02-08 23:11:23 +00:00
|
|
|
|
|
|
|
python311 = {
|
|
|
|
sourceVersion = {
|
|
|
|
major = "3";
|
|
|
|
minor = "11";
|
2023-04-05 23:10:30 +00:00
|
|
|
patch = "3";
|
2023-02-08 23:11:23 +00:00
|
|
|
suffix = "";
|
|
|
|
};
|
2023-04-05 23:10:30 +00:00
|
|
|
hash = "sha256-il25nJYafs8nx1lWGJyWAslodR8R2+riuQDb/xwIW14=";
|
2023-02-08 23:11:23 +00:00
|
|
|
};
|
2021-03-14 14:43:38 +00:00
|
|
|
};
|
|
|
|
|
2019-12-02 19:10:51 +00:00
|
|
|
in {
|
2018-12-31 12:59:20 +00:00
|
|
|
|
|
|
|
python27 = callPackage ./cpython/2.7 {
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.python27;
|
2018-12-31 12:59:20 +00:00
|
|
|
sourceVersion = {
|
|
|
|
major = "2";
|
|
|
|
minor = "7";
|
2020-04-21 06:30:23 +00:00
|
|
|
patch = "18";
|
2023-01-04 21:12:03 +00:00
|
|
|
suffix = ".6"; # ActiveState's Python 2 extended support
|
2018-12-31 12:59:20 +00:00
|
|
|
};
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = "sha256-+I0QOBkuTHMIQz71lgNn1X1vjPsjJMtFbgC0xcGTwWY=";
|
2020-01-12 20:29:45 +00:00
|
|
|
inherit (darwin) configd;
|
2018-12-31 12:59:20 +00:00
|
|
|
inherit passthruFun;
|
|
|
|
};
|
|
|
|
|
2022-03-16 20:12:25 +00:00
|
|
|
python38 = callPackage ./cpython {
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.python38;
|
2022-03-16 20:12:25 +00:00
|
|
|
sourceVersion = {
|
|
|
|
major = "3";
|
|
|
|
minor = "8";
|
2022-12-07 00:25:30 +00:00
|
|
|
patch = "16";
|
2022-03-16 20:12:25 +00:00
|
|
|
suffix = "";
|
|
|
|
};
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = "sha256-2F27N3QTJHPYCB3LFY80oQzK16kLlsflDqS7YfXORWI=";
|
2020-01-12 20:29:45 +00:00
|
|
|
inherit (darwin) configd;
|
2019-07-09 13:19:19 +00:00
|
|
|
inherit passthruFun;
|
2022-03-16 20:12:25 +00:00
|
|
|
};
|
2019-07-09 13:19:19 +00:00
|
|
|
|
2023-02-08 21:55:50 +00:00
|
|
|
python39 = callPackage ./cpython {
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.python39;
|
2023-02-08 21:55:50 +00:00
|
|
|
sourceVersion = {
|
|
|
|
major = "3";
|
|
|
|
minor = "9";
|
|
|
|
patch = "16";
|
|
|
|
suffix = "";
|
|
|
|
};
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = "sha256-It3cCZJG3SdgZlVh6K23OU6gzEOnJoTGSA+TgPd4ZDk=";
|
2020-01-12 20:29:45 +00:00
|
|
|
inherit (darwin) configd;
|
2019-11-20 08:42:27 +00:00
|
|
|
inherit passthruFun;
|
2023-02-08 21:55:50 +00:00
|
|
|
};
|
2019-11-20 08:42:27 +00:00
|
|
|
|
2022-01-15 08:50:35 +00:00
|
|
|
python310 = callPackage ./cpython ({
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.python310;
|
2020-10-13 06:28:25 +00:00
|
|
|
inherit (darwin) configd;
|
|
|
|
inherit passthruFun;
|
2022-01-15 08:50:35 +00:00
|
|
|
} // sources.python310);
|
2020-10-13 06:28:25 +00:00
|
|
|
|
2023-02-08 23:11:23 +00:00
|
|
|
python311 = callPackage ./cpython ({
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.python311;
|
2021-11-13 13:28:38 +00:00
|
|
|
inherit (darwin) configd;
|
|
|
|
inherit passthruFun;
|
2023-02-08 23:11:23 +00:00
|
|
|
} // sources.python311);
|
2021-11-13 13:28:38 +00:00
|
|
|
|
2022-11-28 14:56:53 +00:00
|
|
|
python312 = callPackage ./cpython {
|
|
|
|
self = __splicedPackages.python312;
|
|
|
|
sourceVersion = {
|
|
|
|
major = "3";
|
|
|
|
minor = "12";
|
|
|
|
patch = "0";
|
2023-04-05 21:54:37 +00:00
|
|
|
suffix = "a7";
|
2022-11-28 14:56:53 +00:00
|
|
|
};
|
2023-04-05 21:54:37 +00:00
|
|
|
hash = "sha256-oZrk3Fr+vf9eExI0bxYAYqEeDb1fnmimqYHqN7IWCOE=";
|
2022-11-28 14:56:53 +00:00
|
|
|
inherit (darwin) configd;
|
|
|
|
inherit passthruFun;
|
|
|
|
};
|
|
|
|
|
2019-08-17 15:33:13 +00:00
|
|
|
# Minimal versions of Python (built without optional dependencies)
|
2021-03-14 14:43:38 +00:00
|
|
|
python3Minimal = (callPackage ./cpython ({
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.python3Minimal;
|
2021-03-14 14:43:38 +00:00
|
|
|
inherit passthruFun;
|
2021-02-27 07:55:38 +00:00
|
|
|
pythonAttr = "python3Minimal";
|
2019-08-17 15:33:13 +00:00
|
|
|
# strip down that python version as much as possible
|
|
|
|
openssl = null;
|
|
|
|
readline = null;
|
|
|
|
ncurses = null;
|
|
|
|
gdbm = null;
|
|
|
|
sqlite = null;
|
2020-01-12 20:29:45 +00:00
|
|
|
configd = null;
|
2020-11-16 20:34:33 +00:00
|
|
|
tzdata = null;
|
2022-10-15 01:46:04 +00:00
|
|
|
libffi = libffiBoot; # without test suite
|
2019-08-17 15:33:13 +00:00
|
|
|
stripConfig = true;
|
|
|
|
stripIdlelib = true;
|
|
|
|
stripTests = true;
|
|
|
|
stripTkinter = true;
|
|
|
|
rebuildBytecode = false;
|
|
|
|
stripBytecode = true;
|
2020-03-12 13:15:02 +00:00
|
|
|
includeSiteCustomize = false;
|
2020-06-04 16:37:59 +00:00
|
|
|
enableOptimizations = false;
|
2021-05-25 18:30:28 +00:00
|
|
|
enableLTO = false;
|
2021-03-14 12:00:44 +00:00
|
|
|
mimetypesSupport = false;
|
2022-05-29 18:17:02 +00:00
|
|
|
} // sources.python310)).overrideAttrs(old: {
|
2022-05-22 01:17:00 +00:00
|
|
|
# TODO(@Artturin): Add this to the main cpython expr
|
|
|
|
strictDeps = true;
|
2019-08-17 15:33:13 +00:00
|
|
|
pname = "python3-minimal";
|
|
|
|
});
|
|
|
|
|
2019-01-01 10:34:44 +00:00
|
|
|
pypy27 = callPackage ./pypy {
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.pypy27;
|
2019-01-01 10:34:44 +00:00
|
|
|
sourceVersion = {
|
2019-02-12 01:52:26 +00:00
|
|
|
major = "7";
|
2020-08-10 20:34:00 +00:00
|
|
|
minor = "3";
|
2023-01-04 21:40:39 +00:00
|
|
|
patch = "11";
|
2019-01-01 10:34:44 +00:00
|
|
|
};
|
2022-10-17 07:41:43 +00:00
|
|
|
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = "sha256-ERevtmgx2k6m852NIIR4enRon9AineC+MB+e2bJVCTw=";
|
2019-01-01 10:34:44 +00:00
|
|
|
pythonVersion = "2.7";
|
2019-10-26 09:20:00 +00:00
|
|
|
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
2023-01-04 21:40:39 +00:00
|
|
|
python = __splicedPackages.pythonInterpreters.pypy27_prebuilt;
|
2019-01-01 10:34:44 +00:00
|
|
|
inherit passthruFun;
|
2019-10-26 09:20:00 +00:00
|
|
|
inherit (darwin) libunwind;
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
2019-01-01 10:34:44 +00:00
|
|
|
};
|
|
|
|
|
2022-10-17 07:41:43 +00:00
|
|
|
pypy39 = callPackage ./pypy {
|
|
|
|
self = __splicedPackages.pypy39;
|
2019-01-01 10:34:44 +00:00
|
|
|
sourceVersion = {
|
2019-02-12 01:52:26 +00:00
|
|
|
major = "7";
|
2020-08-10 20:34:00 +00:00
|
|
|
minor = "3";
|
2023-01-04 22:05:42 +00:00
|
|
|
patch = "11";
|
2019-01-01 10:34:44 +00:00
|
|
|
};
|
2022-10-17 07:41:43 +00:00
|
|
|
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = "sha256-sPMWb7Klqt/VzrnbXN1feSmg7MygK0omwNrgSS98qOo=";
|
2022-10-17 07:41:43 +00:00
|
|
|
pythonVersion = "3.9";
|
2019-10-26 09:20:00 +00:00
|
|
|
db = db.override { dbmSupport = !stdenv.isDarwin; };
|
2023-01-04 22:05:42 +00:00
|
|
|
python = __splicedPackages.pypy27;
|
2019-01-01 10:34:44 +00:00
|
|
|
inherit passthruFun;
|
2019-10-26 09:20:00 +00:00
|
|
|
inherit (darwin) libunwind;
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
2019-01-01 10:34:44 +00:00
|
|
|
};
|
2022-10-17 07:41:43 +00:00
|
|
|
|
|
|
|
pypy38 = __splicedPackages.pypy39.override {
|
|
|
|
self = __splicedPackages.pythonInterpreters.pypy38;
|
|
|
|
pythonVersion = "3.8";
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = "sha256-TWdpv8pzc06GZv1wUDt86wam4lkRDmFzMbs4mcpOYFg=";
|
2021-12-21 23:45:39 +00:00
|
|
|
};
|
2018-12-31 12:59:20 +00:00
|
|
|
|
2023-01-04 21:50:09 +00:00
|
|
|
pypy37 = throw "pypy37 has been removed from nixpkgs since it is no longer supported upstream"; # Added 2023-01-04
|
2018-12-31 12:59:20 +00:00
|
|
|
|
2022-01-15 15:47:21 +00:00
|
|
|
pypy27_prebuilt = callPackage ./pypy/prebuilt_2_7.nix {
|
2019-01-03 11:00:44 +00:00
|
|
|
# Not included at top-level
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.pythonInterpreters.pypy27_prebuilt;
|
2019-01-03 11:00:44 +00:00
|
|
|
sourceVersion = {
|
2019-08-12 11:52:14 +00:00
|
|
|
major = "7";
|
2020-08-10 08:23:15 +00:00
|
|
|
minor = "3";
|
2023-01-04 21:30:05 +00:00
|
|
|
patch = "11";
|
2019-01-03 11:00:44 +00:00
|
|
|
};
|
2022-10-17 07:41:43 +00:00
|
|
|
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = {
|
2023-01-04 22:49:37 +00:00
|
|
|
aarch64-linux = "sha256-6pJNod7+kyXvdg4oiwT5hGFOQFWA9TIetqXI9Tm9QVo=";
|
|
|
|
x86_64-linux = "sha256-uo7ZWKkFwHNaTP/yh1wlCJlU3AIOCH2YKw/6W52jFs0=";
|
2023-01-06 13:11:44 +00:00
|
|
|
aarch64-darwin = "sha256-zFaWq0+TzTSBweSZC13t17pgrAYC+hiQ02iImmxb93E=";
|
|
|
|
x86_64-darwin = "sha256-Vt7unCJkD1aGw1udZP2xzjq9BEWD5AePCxccov0qGY4=";
|
2023-01-04 22:49:37 +00:00
|
|
|
}.${stdenv.system};
|
2019-01-03 11:00:44 +00:00
|
|
|
pythonVersion = "2.7";
|
|
|
|
inherit passthruFun;
|
|
|
|
};
|
|
|
|
|
2022-10-17 07:41:43 +00:00
|
|
|
pypy39_prebuilt = callPackage ./pypy/prebuilt.nix {
|
2019-08-12 11:52:14 +00:00
|
|
|
# Not included at top-level
|
2022-10-15 01:47:23 +00:00
|
|
|
self = __splicedPackages.pythonInterpreters.pypy38_prebuilt;
|
2019-01-03 11:00:44 +00:00
|
|
|
sourceVersion = {
|
2019-08-12 11:52:14 +00:00
|
|
|
major = "7";
|
2020-08-10 08:23:15 +00:00
|
|
|
minor = "3";
|
2023-01-04 21:32:39 +00:00
|
|
|
patch = "11";
|
2019-01-03 11:00:44 +00:00
|
|
|
};
|
2023-02-08 23:18:45 +00:00
|
|
|
hash = {
|
2023-01-08 01:04:15 +00:00
|
|
|
aarch64-linux = "sha256-CRddxlLtiV2Y6a1j0haBK/PufjmNkAqb+espBrqDArk=";
|
|
|
|
x86_64-linux = "sha256-1QYXLKEQcSdBdddOnFgcMWZDLQF5sDZHDjuejSDq5YE=";
|
|
|
|
aarch64-darwin = "sha256-ka11APGjlTHb76CzRaPc/5J/+ZcWVOjS6e98WuMR9X4=";
|
|
|
|
x86_64-darwin = "sha256-0z9AsgcJmHJYWv1xhzV1ym6mOKJ9gjvGISOMWuglQu0=";
|
|
|
|
}.${stdenv.system};
|
2022-10-17 07:41:43 +00:00
|
|
|
pythonVersion = "3.9";
|
2019-01-03 11:00:44 +00:00
|
|
|
inherit passthruFun;
|
|
|
|
};
|
|
|
|
|
2023-02-02 23:02:17 +00:00
|
|
|
rustpython = darwin.apple_sdk_11_0.callPackage ./rustpython/default.nix {
|
|
|
|
inherit (darwin.apple_sdk_11_0.frameworks) SystemConfiguration;
|
2021-12-08 22:11:49 +00:00
|
|
|
};
|
|
|
|
|
2019-03-04 07:56:15 +00:00
|
|
|
})
|