about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/snippets/nix-mode/pythonPackage
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/emacs.d/snippets/nix-mode/pythonPackage')
-rw-r--r--users/glittershark/emacs.d/snippets/nix-mode/pythonPackage16
1 files changed, 16 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/snippets/nix-mode/pythonPackage b/users/glittershark/emacs.d/snippets/nix-mode/pythonPackage
new file mode 100644
index 000000000000..0a74c21e1857
--- /dev/null
+++ b/users/glittershark/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