nixpkgs/pkgs/development/tools/pew/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
719 B
Nix

{ lib, python3, fetchPypi }:
with python3.pkgs;
buildPythonApplication rec {
pname = "pew";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "04anak82p4v9w0lgfs55s7diywxil6amq8c8bhli143ca8l2fcdq";
};
propagatedBuildInputs = [ virtualenv virtualenv-clone setuptools ];
# no tests are packaged
checkPhase = ''
$out/bin/pew > /dev/null
'';
pythonImportsCheck = [ "pew" ];
meta = with lib; {
homepage = "https://github.com/berdario/pew";
description = "Tools to manage multiple virtualenvs written in pure python";
mainProgram = "pew";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ berdario ];
};
}