depot/third_party/nixpkgs/pkgs/development/python-modules/in-place/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

42 lines
916 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "in-place";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jwodder";
repo = "inplace";
rev = "refs/tags/v${version}";
hash = "sha256-TfWfSb1GslzcT30/xvBg5Xui7ptp7+g89Fq/giLCoQ8=";
};
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";
changelog = "https://github.com/jwodder/inplace/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ samuela ];
};
}