depot/third_party/nixpkgs/pkgs/development/python-modules/shellescape/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

28 lines
733 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "shellescape";
version = "3.8.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "chrissimpkins";
repo = "shellescape";
rev = "v${version}";
hash = "sha256-HAe3Qf3lLeVWw/tVkW0J+CfoxSoOnCcWDR2nEWZn7HM=";
};
nativeCheckInputs = [ 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 ];
};
}