Skip to content

Commit

Permalink
pyp: init at 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonTorres committed Jul 22, 2023
1 parent 1d56444 commit e8d270b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/tools/text/pyp/default.nix
@@ -0,0 +1,47 @@
{ 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.pytest
bc
jq
];

checkPhase = ''
runHook preCheck
PATH=$out/bin:$PATH pytest
runHook postCheck
'';

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -24191,6 +24191,8 @@ with pkgs;
buildPythonApplication click future six;
};

pyp = callPackage ../tools/text/pyp { };

pru = callPackage ../tools/text/pru { };

prospector = callPackage ../development/tools/prospector { };
Expand Down

0 comments on commit e8d270b

Please sign in to comment.