1{
2 lib,
3 python3,
4 fetchPypi,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "pew";
9 version = "1.2.0";
10 pyproject = true;
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "04anak82p4v9w0lgfs55s7diywxil6amq8c8bhli143ca8l2fcdq";
15 };
16
17 build-system = with python3.pkgs; [
18 setuptools
19 ];
20
21 dependencies = with python3.pkgs; [
22 virtualenv
23 virtualenv-clone
24 setuptools # pkg_resources is imported during runtime
25 ];
26
27 # no tests are packaged
28 checkPhase = ''
29 $out/bin/pew > /dev/null
30 '';
31
32 pythonImportsCheck = [ "pew" ];
33
34 meta = with lib; {
35 homepage = "https://github.com/berdario/pew";
36 description = "Tools to manage multiple virtualenvs written in pure python";
37 mainProgram = "pew";
38 license = licenses.mit;
39 platforms = platforms.all;
40 maintainers = with maintainers; [ berdario ];
41 };
42}