4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
33 lines
992 B
Nix
33 lines
992 B
Nix
{ lib, stdenv, fetchurl, buildPythonPackage, isPy3k, pygments, wxPython }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.2.3";
|
|
pname = "robotframework-ride";
|
|
disabled = isPy3k;
|
|
|
|
src = fetchurl {
|
|
url = "https://robotframework-ride.googlecode.com/files/${pname}-${version}.tar.gz";
|
|
sha256 = "1lf5f4x80f7d983bmkx12sxcizzii21kghs8kf63a1mj022a5x5j";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pygments wxPython ];
|
|
|
|
# ride_postinstall.py checks that needed deps are installed and creates a
|
|
# desktop shortcut. We don't really need it and it clutters up bin/ so
|
|
# remove it.
|
|
postInstall = ''
|
|
rm -f "$out/bin/ride_postinstall.py"
|
|
'';
|
|
|
|
# error: invalid command 'test'
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Light-weight and intuitive editor for Robot Framework test case files";
|
|
homepage = "https://code.google.com/p/robotframework-ride/";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
};
|
|
}
|