Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / in-place / default.nix
blob324cd61537fe75d000e615803aea6535cef19f20
1 { buildPythonPackage
2 , fetchFromGitHub
3 , lib
4 , pytestCheckHook
5 , pythonOlder
6 , setuptools
7 }:
9 buildPythonPackage rec {
10   pname = "in-place";
11   version = "1.0.0";
12   format = "pyproject";
14   disabled = pythonOlder "3.8";
16   src = fetchFromGitHub {
17     owner = "jwodder";
18     repo = "inplace";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-TfWfSb1GslzcT30/xvBg5Xui7ptp7+g89Fq/giLCoQ8=";
21   };
23   postPatch = ''
24     substituteInPlace tox.ini --replace "--cov=in_place --no-cov-on-fail" ""
25   '';
27   nativeBuildInputs = [
28     setuptools
29   ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "in_place" ];
35   meta = with lib; {
36     description = "In-place file processing";
37     homepage = "https://github.com/jwodder/inplace";
38     changelog = "https://github.com/jwodder/inplace/blob/v${version}/CHANGELOG.md";
39     license = licenses.mit;
40     maintainers = with maintainers; [ samuela ];
41   };