mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
pythonPackages.bashlex: init at 0.14
This commit is contained in:
parent
76bd004a4b
commit
0c76aa6414
38
pkgs/development/python-modules/bashlex/default.nix
Normal file
38
pkgs/development/python-modules/bashlex/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ enum-compat
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bashlex";
|
||||
version = "0.14";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "idank";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "070spmbf53y18miky5chgky4x5h8kp9czkp7dm173klv9pi2cn0k";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ enum-compat ];
|
||||
|
||||
# workaround https://github.com/idank/bashlex/issues/51
|
||||
preBuild = ''
|
||||
${python.interpreter} -c 'import bashlex'
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m nose --with-doctest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python parser for bash";
|
||||
license = licenses.gpl3;
|
||||
homepage = https://github.com/idank/bashlex;
|
||||
maintainers = with maintainers; [ multun ];
|
||||
};
|
||||
}
|
|
@ -472,6 +472,8 @@ in {
|
|||
|
||||
bash_kernel = callPackage ../development/python-modules/bash_kernel { };
|
||||
|
||||
bashlex = callPackage ../development/python-modules/bashlex { };
|
||||
|
||||
bayespy = callPackage ../development/python-modules/bayespy { };
|
||||
|
||||
beanstalkc = callPackage ../development/python-modules/beanstalkc { };
|
||||
|
|
Loading…
Reference in a new issue