blob: e1d635c18b69868316e206e137daf6120f0f4bad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ 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 ];
};
}
|