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
31 lines
842 B
Nix
31 lines
842 B
Nix
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, isPy36, flake8, click, pyyaml, six, pytestCheckHook, pytestcov }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clickclick";
|
|
version = "1.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hjacobs";
|
|
repo = "python-clickclick";
|
|
rev = version;
|
|
sha256 = "1rij9ws9nhsmagiy1vclzliiqfkxi006rf65qvrw1k3sm2s8p5g0";
|
|
};
|
|
|
|
checkInputs = [ pytestCheckHook pytestcov ];
|
|
propagatedBuildInputs = [ flake8 click pyyaml six ];
|
|
|
|
# test_cli asserts on exact quoting style of output
|
|
disabledTests = [
|
|
"test_cli"
|
|
] ++ lib.optionals isPy36 [
|
|
"test_choice_default"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Click command line utilities";
|
|
homepage = "https://github.com/hjacobs/python-clickclick/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|