Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f09e5f1bf2de
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9df14757c9a9
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 7, 2020

  1. pew: 1.1.2 -> 1.2.0, fix build

    Jonathan Ringer committed Apr 7, 2020
    Copy the full SHA
    9df1475 View commit details
Showing with 25 additions and 29 deletions.
  1. +25 −29 pkgs/development/tools/pew/default.nix
54 changes: 25 additions & 29 deletions pkgs/development/tools/pew/default.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
{ stdenv, python3Packages }:
with python3Packages; buildPythonApplication rec {
pname = "pew";
version = "1.1.2";
{ stdenv, python3 }:

src = fetchPypi {
inherit pname version;
sha256 = "04anak82p4v9w0lgfs55s7diywxil6amq8c8bhli143ca8l2fcdq";
};
with python3.pkgs;

propagatedBuildInputs = [ virtualenv virtualenv-clone setuptools ];
buildPythonApplication rec {
pname = "pew";
version = "1.2.0";

LC_ALL = "en_US.UTF-8";
src = fetchPypi {
inherit pname version;
sha256 = "04anak82p4v9w0lgfs55s7diywxil6amq8c8bhli143ca8l2fcdq";
};

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'"
'';
propagatedBuildInputs = [ virtualenv virtualenv-clone setuptools ];

meta = with stdenv.lib; {
homepage = https://github.com/berdario/pew;
description = "Tools to manage multiple virtualenvs written in pure python";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ berdario ];
};
}
# no tests are packaged
checkPhase = ''
$out/bin/pew > /dev/null
'';

pythonImportsCheck = [ "pew" ];

meta = with stdenv.lib; {
homepage = "https://github.com/berdario/pew";
description = "Tools to manage multiple virtualenvs written in pure python";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ berdario ];
};
}