Merge pull request #138998 from rmcgibbo/pyp

This commit is contained in:
Sandro 2021-09-22 22:19:48 +02:00 committed by GitHub
commit dc2cebde00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {