From 0dfe1e1d870168c5b8f46c26f5fdb8b55de61930 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 12 Dec 2022 15:36:00 +0100 Subject: remove python2 --- examples/hello_world.nix | 3 --- examples/simple.nix | 9 --------- 2 files changed, 12 deletions(-) (limited to 'examples') diff --git a/examples/hello_world.nix b/examples/hello_world.nix index 4f9330a..f71804f 100644 --- a/examples/hello_world.nix +++ b/examples/hello_world.nix @@ -24,9 +24,6 @@ in { perl = pkgs.writePerl "hello-world" {} '' print "hello world\n"; ''; - python2 = pkgs.writePython2 "hello-world" {} '' - print "hello world" - ''; python3 = pkgs.writePython3 "hello-world" {} '' print("hello world") ''; diff --git a/examples/simple.nix b/examples/simple.nix index 55ccedc..4ff3d9e 100644 --- a/examples/simple.nix +++ b/examples/simple.nix @@ -24,15 +24,6 @@ in { use boolean; print "Howdy!\n" if true; ''; - python2 = pkgs.writePython2 "simple.py" { deps = [ pkgs.python2Packages.pyyaml ]; } '' - import yaml - - print yaml.load(""" - - some - - random - - variables - """) - ''; python3 = pkgs.writePython3 "simple.py" { deps = [ pkgs.python3Packages.pyyaml ]; } '' import yaml -- cgit v1.2.3