git.iko.soy/typeable/nixpkgs
on master help sign in
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)

commitc6f90f949337c6296fe9fd8137c2ba0bbdc318d5 authorDario Bertini <berdario@gmail.com> dateSun 15 Oct 2017, 17:15 (9 years ago) parent09deacb
3 files changed+34−21
pkgs/development/tools/pew/default.nix+32 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix−21
pkgs/development/tools/pew/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, python3Packages }:
2+with python3Packages; buildPythonApplication rec {
3+ name = "${pname}-${version}";
4+ pname = "pew";
5+ version = "1.1.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "0b8z1vjsll1kgnh3mmdjps5rr9gayy091rapp2dra71jrwkx3yfh";
10+ };
11+
12+ propagatedBuildInputs = [ virtualenv virtualenv-clone setuptools ];
13+
14+ postFixup = ''
15+ set -euo pipefail
16+ PEW_SITE="$out/lib/${python.libPrefix}/site-packages"
17+ SETUPTOOLS="${setuptools}/lib/${python.libPrefix}/site-packages"
18+ SETUPTOOLS_SITE=$SETUPTOOLS/$(cat $SETUPTOOLS/setuptools.pth)
19+ CLONEVENV_SITE="${virtualenv-clone}/lib/${python.libPrefix}/site-packages"
20+ SITE_PACKAGES="[\'$PEW_SITE\',\'$SETUPTOOLS_SITE\',\'$CLONEVENV_SITE\']"
21+ substituteInPlace $PEW_SITE/pew/pew.py \
22+ --replace "from pew.pew" "import sys; sys.path.extend($SITE_PACKAGES); from pew.pew" \
23+ --replace 'sys.executable, "-m", "virtualenv"' "'${virtualenv}/bin/virtualenv'"
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Tools to manage multiple virtualenvs written in pure python";
28+ license = licenses.mit;
29+ platforms = platforms.all;
30+ maintainers = with maintainers; [ berdario ];
31+ };
32+ }
pkgs/top-level/all-packages.nix+2
@@ -6674,6 +6674,8 @@ with pkgs;
66746674
66756675 svg2tikz = python27Packages.svg2tikz;
66766676
6677+ pew = callPackage ../development/tools/pew {};
6678+
66776679 pyrex = pyrex095;
66786680
66796681 pyrex095 = callPackage ../development/interpreters/pyrex/0.9.5.nix { };
pkgs/top-level/python-packages.nix−21
@@ -6994,27 +6994,6 @@ in {
69946994 };
69956995 };
69966996
6997− pew = buildPythonPackage rec {
6998− name = "pew-0.1.14";
6999− namePrefix = "";
7000−
7001− disabled = pythonOlder "3.4"; # old versions require backported libraries
7002−
7003− src = pkgs.fetchurl {
7004− url = "mirror://pypi/p/pew/${name}.tar.gz";
7005− sha256 = "0p188ah80l0rzbib2srahj2sswz8rcpqwbrbajyv2r5c1m5k6r4b";
7006− };
7007−
7008− propagatedBuildInputs = with self; [ virtualenv virtualenv-clone ];
7009−
7010− meta = {
7011− description = "Tools to manage multiple virtualenvs written in pure python, a virtualenvwrapper rewrite";
7012− license = licenses.mit;
7013− platforms = platforms.all;
7014− maintainers = with maintainers; [ berdario ];
7015− };
7016− };
7017−
70186997 pex = buildPythonPackage rec {
70196998 name = "pex-${version}";
70206999 version = "1.2.7";