depot/third_party/nixpkgs/pkgs/development/python-modules/bashlex/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

38 lines
760 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "bashlex";
version = "0.16";
format = "setuptools";
src = fetchFromGitHub {
owner = "idank";
repo = pname;
rev = version;
hash = "sha256-vpcru/ax872WK3XuRQWTmTD9zRdObn2Bit6kY9ZIQaI=";
};
# workaround https://github.com/idank/bashlex/issues/51
preBuild = ''
${python.pythonForBuild.interpreter} -c 'import bashlex'
'';
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "bashlex" ];
meta = with lib; {
description = "Python parser for bash";
license = licenses.gpl3Plus;
homepage = "https://github.com/idank/bashlex";
maintainers = with maintainers; [ multun ];
};
}