mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-30 05:55:40 +00:00
43 lines
862 B
Nix
43 lines
862 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "bashlex";
|
|
version = "0.18";
|
|
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "idank";
|
|
repo = "bashlex";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-ddZN91H95RiTLXx4lpES1Dmz7nNsSVUeuFuOEpJ7LQI=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# workaround https://github.com/idank/bashlex/issues/51
|
|
preBuild = ''
|
|
${python.pythonOnBuildForHost.interpreter} -c 'import bashlex'
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "bashlex" ];
|
|
|
|
meta = {
|
|
description = "Python parser for bash";
|
|
license = lib.licenses.gpl3Plus;
|
|
homepage = "https://github.com/idank/bashlex";
|
|
maintainers = with lib.maintainers; [ multun ];
|
|
};
|
|
})
|