about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/in-place/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/in-place/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/in-place/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/in-place/default.nix b/nixpkgs/pkgs/development/python-modules/in-place/default.nix
new file mode 100644
index 000000000000..6490aea35983
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/in-place/default.nix
@@ -0,0 +1,33 @@
+{ buildPythonPackage
+, fetchFromGitHub
+, lib
+, pytestCheckHook
+}:
+
+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" ""
+  '';
+
+  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 ];
+  };
+}