depot/third_party/nixpkgs/pkgs/development/python-modules/shellescape/default.nix
Default email 48d4c8cc3c Project import generated by Copybara.
GitOrigin-RevId: 6ef4f522d63f22b40004319778761040d3197390
2021-08-08 17:34:03 -06:00

27 lines
702 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "shellescape";
version = "3.8.1";
src = fetchFromGitHub {
owner = "chrissimpkins";
repo = "shellescape";
rev = "v${version}";
hash = "sha256-HAe3Qf3lLeVWw/tVkW0J+CfoxSoOnCcWDR2nEWZn7HM=";
};
checkInputs = [ pytestCheckHook ];
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";
license = with licenses; [ mit psfl ];
maintainers = with maintainers; [ veprbl ];
};
}