nixpkgs/pkgs/development/python-modules/in-place/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

39 lines
778 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "in-place";
version = "0.5.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "jwodder";
repo = "inplace";
rev = "v${version}";
sha256 = "1w6q3d0gqz4mxvspd08l1nhsrw6rpzv1gnyj4ckx61b24f84p5gk";
};
postPatch = ''
substituteInPlace tox.ini --replace "--cov=in_place --no-cov-on-fail" ""
'';
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "in_place" ];
meta = with lib; {
description = "In-place file processing";
homepage = "https://github.com/jwodder/inplace";
license = licenses.mit;
maintainers = with maintainers; [ samuela ];
};
}