about summary refs log tree commit diff
path: root/snippets/nix-mode/pythonPackage
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-03-26T19·03-0400
committerGriffin Smith <root@gws.fyi>2020-03-26T19·03-0400
commit35c76e7098111ed0d84aef1bd09f7025ce728b87 (patch)
treecea6f3893ffb3b983fdc42b4c38aa5c3c1a5fe36 /snippets/nix-mode/pythonPackage
parent23b179ad1d3d2e07c114741dffc50a8343f0a7a6 (diff)
Many updates, too many to count
commit messages are for code, not config

I guess
Diffstat (limited to 'snippets/nix-mode/pythonPackage')
-rw-r--r--snippets/nix-mode/pythonPackage16
1 files changed, 16 insertions, 0 deletions
diff --git a/snippets/nix-mode/pythonPackage b/snippets/nix-mode/pythonPackage
new file mode 100644
index 000000000000..0a74c21e1857
--- /dev/null
+++ b/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