mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
pyp: init at 1.1.0
This commit is contained in:
parent
c457450bf4
commit
580102072a
51
pkgs/tools/text/pyp/default.nix
Normal file
51
pkgs/tools/text/pyp/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, bc
|
||||
, jq
|
||||
}:
|
||||
|
||||
let
|
||||
version = "1.1.0";
|
||||
in python3.pkgs.buildPythonApplication {
|
||||
pname = "pyp";
|
||||
inherit version;
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hauntsaninja";
|
||||
repo = "pyp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-A1Ip41kxH17BakHEWEuymfa24eBEl5FIHAWL+iZFM4I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3.pkgs.flit-core
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
python3.pkgs.pytestCheckHook
|
||||
bc
|
||||
jq
|
||||
];
|
||||
|
||||
# without this, the tests fail because they are unable to find the pyp tool
|
||||
# itself...
|
||||
preCheck = ''
|
||||
_OLD_PATH_=$PATH
|
||||
PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
# And a cleanup
|
||||
postCheck = ''
|
||||
PATH=$_OLD_PATH_
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/hauntsaninja/pyp";
|
||||
description = "Easily run Python at the shell";
|
||||
changelog = "https://github.com/hauntsaninja/pyp/blob/${version}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||
};
|
||||
}
|
@ -24208,6 +24208,8 @@ with pkgs;
|
||||
buildPythonApplication click future six;
|
||||
};
|
||||
|
||||
pyp = callPackage ../tools/text/pyp { };
|
||||
|
||||
pru = callPackage ../tools/text/pru { };
|
||||
|
||||
prospector = callPackage ../development/tools/prospector { };
|
||||
|
Loading…
Reference in New Issue
Block a user