mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
pew: 0.1.14 -> 1.1.0
Pew was actually broken, due to a SHELL PATH check that had been added in the previous release (though this shouldn't have hampered users with bash as their shell)
This commit is contained in:
parent
09deacb7b8
commit
c6f90f9493
3 changed files with 34 additions and 21 deletions
32
pkgs/development/tools/pew/default.nix
Normal file
32
pkgs/development/tools/pew/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, python3Packages }:
|
||||
with python3Packages; buildPythonApplication rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "pew";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0b8z1vjsll1kgnh3mmdjps5rr9gayy091rapp2dra71jrwkx3yfh";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ virtualenv virtualenv-clone setuptools ];
|
||||
|
||||
postFixup = ''
|
||||
set -euo pipefail
|
||||
PEW_SITE="$out/lib/${python.libPrefix}/site-packages"
|
||||
SETUPTOOLS="${setuptools}/lib/${python.libPrefix}/site-packages"
|
||||
SETUPTOOLS_SITE=$SETUPTOOLS/$(cat $SETUPTOOLS/setuptools.pth)
|
||||
CLONEVENV_SITE="${virtualenv-clone}/lib/${python.libPrefix}/site-packages"
|
||||
SITE_PACKAGES="[\'$PEW_SITE\',\'$SETUPTOOLS_SITE\',\'$CLONEVENV_SITE\']"
|
||||
substituteInPlace $PEW_SITE/pew/pew.py \
|
||||
--replace "from pew.pew" "import sys; sys.path.extend($SITE_PACKAGES); from pew.pew" \
|
||||
--replace 'sys.executable, "-m", "virtualenv"' "'${virtualenv}/bin/virtualenv'"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tools to manage multiple virtualenvs written in pure python";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ berdario ];
|
||||
};
|
||||
}
|
|
@ -6674,6 +6674,8 @@ with pkgs;
|
|||
|
||||
svg2tikz = python27Packages.svg2tikz;
|
||||
|
||||
pew = callPackage ../development/tools/pew {};
|
||||
|
||||
pyrex = pyrex095;
|
||||
|
||||
pyrex095 = callPackage ../development/interpreters/pyrex/0.9.5.nix { };
|
||||
|
|
|
@ -6994,27 +6994,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
pew = buildPythonPackage rec {
|
||||
name = "pew-0.1.14";
|
||||
namePrefix = "";
|
||||
|
||||
disabled = pythonOlder "3.4"; # old versions require backported libraries
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pew/${name}.tar.gz";
|
||||
sha256 = "0p188ah80l0rzbib2srahj2sswz8rcpqwbrbajyv2r5c1m5k6r4b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ virtualenv virtualenv-clone ];
|
||||
|
||||
meta = {
|
||||
description = "Tools to manage multiple virtualenvs written in pure python, a virtualenvwrapper rewrite";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ berdario ];
|
||||
};
|
||||
};
|
||||
|
||||
pex = buildPythonPackage rec {
|
||||
name = "pex-${version}";
|
||||
version = "1.2.7";
|
||||
|
|
Loading…
Reference in a new issue