1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 14:22:35 +03:00
nixpkgs/pkgs/development/python-modules/bashlex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
739 B
Nix
Raw Normal View History

{ lib
2019-12-29 19:34:42 +01:00
, buildPythonPackage
, fetchFromGitHub
, python
, pytestCheckHook
2019-12-29 19:34:42 +01:00
}:
buildPythonPackage rec {
pname = "bashlex";
version = "0.16";
format = "setuptools";
2019-12-29 19:34:42 +01:00
src = fetchFromGitHub {
owner = "idank";
repo = pname;
rev = version;
hash = "sha256-vpcru/ax872WK3XuRQWTmTD9zRdObn2Bit6kY9ZIQaI=";
2019-12-29 19:34:42 +01:00
};
# workaround https://github.com/idank/bashlex/issues/51
preBuild = ''
${python.interpreter} -c 'import bashlex'
'';
checkInputs = [
pytestCheckHook
];
2019-12-29 19:34:42 +01:00
2021-07-03 00:34:18 +02:00
pythonImportsCheck = [ "bashlex" ];
2019-12-29 19:34:42 +01:00
meta = with lib; {
description = "Python parser for bash";
2021-07-03 00:34:18 +02:00
license = licenses.gpl3Plus;
homepage = "https://github.com/idank/bashlex";
2019-12-29 19:34:42 +01:00
maintainers = with maintainers; [ multun ];
};
}