python3Packages.pyp: init at 0.3.4

This commit is contained in:
Robert T. McGibbon 2021-09-22 15:38:58 -04:00
parent c5ccc212eb
commit 0a192fa3bc
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, coreutils
, pythonOlder
, astunparse
, jq
, bc
}:
buildPythonPackage rec {
pname = "pyp";
version = "0.3.4";
src = fetchFromGitHub {
owner = "hauntsaninja";
repo = pname;
rev = "v${version}";
sha256 = "sha256-K9dGmvy4siurmhqwNfg1dT0TWc6tCSaxfPyaJkYM2Vw=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [
astunparse
];
preCheck = ''
export PATH=$out/bin:$PATH
'';
checkInputs = [
pytestCheckHook
coreutils
jq
bc
];
meta = with lib; {
description = "Easily run Python at the shell! Magical, but never mysterious.";
homepage = "https://github.com/hauntsaninja/pyp";
license = licenses.mit;
maintainers = with maintainers; [ rmcgibbo ];
};
}

View File

@ -6551,6 +6551,10 @@ in {
pyomo = callPackage ../development/python-modules/pyomo { };
pyp = callPackage ../development/python-modules/pyp {
inherit (pkgs) jq;
};
phonemizer = callPackage ../development/python-modules/phonemizer { };
pyopencl = callPackage ../development/python-modules/pyopencl {