tvl-depot/users/glittershark/emacs.d/snippets/nix-mode/pythonPackage

16 lines
445 B
Text
Raw Normal View History

# 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
];
};