1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "shellescape";
9 version = "3.8.1";
10
11 src = fetchFromGitHub {
12 owner = "chrissimpkins";
13 repo = "shellescape";
14 rev = "v${version}";
15 hash = "sha256-HAe3Qf3lLeVWw/tVkW0J+CfoxSoOnCcWDR2nEWZn7HM=";
16 };
17
18 checkInputs = [ pytestCheckHook ];
19 pythonImportsCheck = [ "shellescape" ];
20
21 meta = with lib; {
22 description = "Shell escape a string to safely use it as a token in a shell command (backport of Python shlex.quote)";
23 homepage = "https://github.com/chrissimpkins/shellescape";
24 license = with licenses; [ mit psfl ];
25 maintainers = with maintainers; [ veprbl ];
26 };
27}