ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / in-place / default.nix
blob7114fae94e98ffa1c7bb8117cdf17fb5c431e5aa
1 { buildPythonPackage
2 , fetchFromGitHub
3 , lib
4 , pytestCheckHook
5 , setuptools
6 }:
8 buildPythonPackage rec {
9   pname = "in-place";
10   version = "0.5.0";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "jwodder";
15     repo = "inplace";
16     rev = "v${version}";
17     sha256 = "1w6q3d0gqz4mxvspd08l1nhsrw6rpzv1gnyj4ckx61b24f84p5gk";
18   };
20   postPatch = ''
21     substituteInPlace tox.ini --replace "--cov=in_place --no-cov-on-fail" ""
22   '';
24   nativeBuildInputs = [
25     setuptools
26   ];
28   checkInputs = [ pytestCheckHook ];
30   pythonImportsCheck = [ "in_place" ];
32   meta = with lib; {
33     description = "In-place file processing";
34     homepage = "https://github.com/jwodder/inplace";
35     license = licenses.mit;
36     maintainers = with maintainers; [ samuela ];
37   };