2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2021-08-08 23:34:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "shellescape";
|
|
|
|
version = "3.8.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrissimpkins";
|
|
|
|
repo = "shellescape";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-HAe3Qf3lLeVWw/tVkW0J+CfoxSoOnCcWDR2nEWZn7HM=";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-08-08 23:34:03 +00:00
|
|
|
pythonImportsCheck = [ "shellescape" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Shell escape a string to safely use it as a token in a shell command (backport of Python shlex.quote)";
|
|
|
|
homepage = "https://github.com/chrissimpkins/shellescape";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
mit
|
|
|
|
psfl
|
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|