about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bashlex
diff options
context:
space:
mode:
authorVictor multun Collod <victor.collod@epita.fr>2019-12-29 19:34:42 +0100
committerJon <jonringer@users.noreply.github.com>2020-01-03 02:10:22 -0800
commit0c76aa6414dd5900821699e707f43e570d2804a6 (patch)
treee45a1d5607b521761cea9d8a6e01334bdbee9a72 /pkgs/development/python-modules/bashlex
parent76bd004a4b51d3904c126f8bd76e86918d7363e1 (diff)
pythonPackages.bashlex: init at 0.14
Diffstat (limited to 'pkgs/development/python-modules/bashlex')
-rw-r--r--pkgs/development/python-modules/bashlex/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bashlex/default.nix b/pkgs/development/python-modules/bashlex/default.nix
new file mode 100644
index 0000000000000..c575dc516ffee
--- /dev/null
+++ b/pkgs/development/python-modules/bashlex/default.nix
@@ -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 ];
+  };
+}