mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
17 lines
408 B
Nix
17 lines
408 B
Nix
|
# Propagated by buildPythonPackge to process pth files
|
||
|
|
||
|
{ stdenv, python, setuptools }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "python-setuptools-site-${setuptools.version}";
|
||
|
|
||
|
buildInputs = [ python setuptools ];
|
||
|
|
||
|
unpackPhase = "true";
|
||
|
installPhase = ''
|
||
|
dst="$out/lib/${python.libPrefix}/site-packages"
|
||
|
ensureDir $dst
|
||
|
ln -s ${setuptools}/lib/${python.libPrefix}/site-packages/site.* $dst/
|
||
|
'';
|
||
|
}
|