about summary refs log tree commit diff
path: root/pkgs/development/python-modules/robomachine
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2017-10-29 15:28:59 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2017-10-29 22:35:15 +0100
commit3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b (patch)
tree7fb7ed821c0a441bf2e2d2fe0c114806d4ba6b96 /pkgs/development/python-modules/robomachine
parent6de28d760acec6f664ad5f20d508594cd62a894c (diff)
downloadnixlib-3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b.tar
nixlib-3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b.tar.gz
nixlib-3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b.tar.bz2
nixlib-3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b.tar.lz
nixlib-3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b.tar.xz
nixlib-3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b.tar.zst
nixlib-3ab65ef6bf0206a4d9f85ef283dcd90e9d4d2a5b.zip
pythonPackages.robomachine: move to python-modules/
Diffstat (limited to 'pkgs/development/python-modules/robomachine')
-rw-r--r--pkgs/development/python-modules/robomachine/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/robomachine/default.nix b/pkgs/development/python-modules/robomachine/default.nix
new file mode 100644
index 000000000000..1e7b020cd513
--- /dev/null
+++ b/pkgs/development/python-modules/robomachine/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, buildPythonPackage, pyparsing, argparse, robotframework }:
+
+buildPythonPackage rec {
+  name = "robomachine-0.6";
+
+  src = fetchurl {
+    url = "mirror://pypi/R/RoboMachine/RoboMachine-0.6.tar.gz";
+    sha256 = "6c9a9bae7bffa272b2a09b05df06c29a3a776542c70cae8041a8975a061d2e54";
+  };
+
+  propagatedBuildInputs = [ pyparsing argparse robotframework ];
+
+  # Remove Windows .bat files
+  postInstall = ''
+    rm "$out/bin/"*.bat
+  '';
+
+  postPatch = ''
+    substituteInPlace setup.py --replace "argparse" ""
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Test data generator for Robot Framework";
+    homepage = https://github.com/mkorpela/RoboMachine;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ bjornfor ];
+  };
+}