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
29 lines
640 B
Nix
29 lines
640 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchhg
|
|
, ruamel_base
|
|
, ruamel_ordereddict
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ruamel.yaml.clib";
|
|
version = "0.2.0";
|
|
|
|
src = fetchhg {
|
|
url = "http://hg.code.sf.net/p/ruamel-yaml-clib/code";
|
|
rev = version;
|
|
sha256 = "0kq6zi96qlm72lzj90fc2rfk6nm5kqhk6qxdl8wl9s3a42b0v6wl";
|
|
};
|
|
|
|
# outputs match wheel
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
|
|
homepage = "https://sourceforge.net/projects/ruamel-yaml-clib/";
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|