nixpkgs/pkgs/development/python-modules/shutilwhich/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

31 lines
591 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
}:
buildPythonPackage rec {
pname = "shutilwhich";
version = "1.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "mbr";
repo = pname;
rev = version;
sha256 = "05fwcjn86w8wprck04iv1zccfi39skdf0lhwpb4b9gpvklyc9mj0";
};
nativeCheckInputs = [ pytest ];
checkPhase = ''
pytest -rs
'';
meta = with lib; {
description = "Backport of shutil.which";
license = licenses.psfl;
homepage = "https://github.com/mbr/shutilwhich";
maintainers = with maintainers; [ multun ];
};
}