summary refs log tree commit diff
path: root/pkgs/development/python-modules/robomachine/default.nix
blob: 8f71bab9c250187979559af65b01d1a12783f7c6 (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
{ stdenv, fetchurl, buildPythonPackage, pyparsing, argparse, robotframework }:

buildPythonPackage rec {
  pname = "robomachine";
  version = "0.6";
  name = pname + "-" + version;

  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 ];
  };
}