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
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, six, nose, nose-of-yeti
|
|
, nose-pattern-exclude, which }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nose-focus";
|
|
version = "0.1.3";
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
checkInputs = [ nose nose-of-yeti nose-pattern-exclude which ];
|
|
|
|
# PyPI doesn't contain tests so let's use GitHub. See:
|
|
# https://github.com/delfick/nose-focus/issues/4
|
|
#
|
|
# However, the versions aren't tagged on GitHub so need to use a manually
|
|
# checked revision. See: https://github.com/delfick/nose-focus/issues/5
|
|
src = fetchFromGitHub {
|
|
owner = "delfick";
|
|
repo = pname;
|
|
rev = "4dac785ba07ed6e1df61b0fe2854685eef3bd115";
|
|
sha256 = "0gpd4j4433dc5ifh31w08c3bx862md0qm1ix6aam1rz4ayxpq51f";
|
|
};
|
|
|
|
checkPhase = ''
|
|
patchShebangs test.sh
|
|
./test.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Decorator and plugin to make nose focus on specific tests";
|
|
homepage = "https://nose-focus.readthedocs.io/en/latest/";
|
|
license = licenses.wtfpl;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|