about summary refs log tree commit diff
path: root/users/aspen/emacs.d/snippets/nix-mode/pythonPackage
diff options
context:
space:
mode:
Diffstat (limited to 'users/aspen/emacs.d/snippets/nix-mode/pythonPackage')
-rw-r--r--users/aspen/emacs.d/snippets/nix-mode/pythonPackage16
1 files changed, 16 insertions, 0 deletions
diff --git a/users/aspen/emacs.d/snippets/nix-mode/pythonPackage b/users/aspen/emacs.d/snippets/nix-mode/pythonPackage
new file mode 100644
index 000000000000..0a74c21e1857
--- /dev/null
+++ b/users/aspen/emacs.d/snippets/nix-mode/pythonPackage
@@ -0,0 +1,16 @@
+# key: pypkg
+# name: pythonPackage
+# condition: t
+# --
+${1:pname} = buildPythonPackage rec {
+           name = "\${pname}-\${version}";
+           pname = "$1";
+           version = "${2:1.0.0}";
+           src = fetchPypi {
+               inherit pname version;
+               sha256 = "0000000000000000000000000000000000000000000000000000";
+           };
+           propagatedBuildInputs = with pythonSelf; [
+               $3
+           ];
+};
\ No newline at end of file