diff options
author | lassulus <lassulus@lassul.us> | 2022-12-12 15:36:00 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-12-12 15:39:48 +0100 |
commit | 0dfe1e1d870168c5b8f46c26f5fdb8b55de61930 (patch) | |
tree | f6a63057f4e0619863429ac2cd455a0716a78839 /pkgs/default.nix | |
parent | f65c77bdcc58be2081a0ffbda849289c5191b5e8 (diff) |
remove python2
Diffstat (limited to 'pkgs/default.nix')
-rw-r--r-- | pkgs/default.nix | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index 8c62f1b..a236d1d 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -447,21 +447,6 @@ pkgs: oldpkgs: { writePerlBin = name: pkgs.writePerl "/bin/${name}"; - writePython2 = name: { deps ? [], flakeIgnore ? [] }: - let - py = pkgs.python2.withPackages (ps: deps); - ignoreAttribute = optionalString (flakeIgnore != []) "--ignore ${concatMapStringsSep "," escapeShellArg flakeIgnore}"; - in - pkgs.makeScriptWriter { - interpreter = "${py}/bin/python"; - check = pkgs.writeDash "python2check.sh" '' - exec ${pkgs.python2Packages.flake8}/bin/flake8 --show-source ${ignoreAttribute} "$1" - ''; - } name; - - writePython2Bin = name: - pkgs.writePython2 "/bin/${name}"; - writePython3 = name: { deps ? [], flakeIgnore ? [] }: let py = pkgs.python3.withPackages (ps: deps); |