about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2021-01-03 00:32:16 +0100
committerGitHub <noreply@github.com>2021-01-03 00:32:16 +0100
commit4edcaabafc536c30324853a8737978ec57c629aa (patch)
treec713fa13752a4fe3047a89f069542632fa08dc8c /pkgs/development
parent3b7d783cb0fbdc3b14a36451ad2f94d01521f610 (diff)
parenta1668d0d7b482c338f29b835bc178d5f2fcdc7ae (diff)
Merge pull request #108203 from lovesegfault/pythonPackages.reflink
pythonPackages.reflink: init at 0.2.1
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/reflink/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/reflink/default.nix b/pkgs/development/python-modules/reflink/default.nix
new file mode 100644
index 0000000000000..e9b8beadd16db
--- /dev/null
+++ b/pkgs/development/python-modules/reflink/default.nix
@@ -0,0 +1,33 @@
+{ buildPythonPackage
+, cffi
+, fetchPypi
+, lib
+, pytestCheckHook
+, pytestrunner
+}:
+
+buildPythonPackage rec {
+  pname = "reflink";
+  version = "0.2.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "sha256-ySU1gtskQTv9cDq/wbKkneePMbSQcjnyhumhkpoebjo=";
+  };
+
+  propagatedBuildInputs = [ cffi pytestrunner ];
+
+  checkInputs = [ pytestCheckHook ];
+
+  # FIXME: These do not work, and I have been unable to figure out why.
+  doCheck = false;
+
+  pythonImportsCheck = [ "reflink" ];
+
+  meta = with lib; {
+    description = "Python reflink wraps around platform specific reflink implementations";
+    homepage = "https://gitlab.com/rubdos/pyreflink";
+    license = licenses.mit;
+    maintainers = with maintainers; [ lovesegfault ];
+  };
+}