depot/third_party/nixpkgs/pkgs/development/python-modules/in-place/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

38 lines
772 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
];
checkInputs = [ 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 ];
};
}