Commit fdb77670 authored by Bruno BELANYI's avatar Bruno BELANYI
Browse files

python3Packages.reflink-copy: init at 0.3.3

parent d30c2630
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  rustPlatform,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "reflink-copy";
  version = "0.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "iterative";
    repo = "reflink-copy";
    tag = version;
    hash = "sha256-HxUAsqV5kjstfBfY/nEGJ3epUVT5WXoTqKerUggKDyo=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit pname version src;
    hash = "sha256-TBKVf0kRRYn+1aYvhQHCHmJEsT0khFxp8iuyEWX9xyI=";
  };

  nativeBuildInputs = with rustPlatform; [
    cargoSetupHook
    maturinBuildHook
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "reflink_copy" ];

  meta = with lib; {
    description = "Python wrapper for reflink_copy Rust library";
    homepage = "https://github.com/iterative/reflink-copy";
    license = licenses.asl20;
    maintainers = with maintainers; [ ambroisie ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -15833,6 +15833,8 @@ self: super: with self; {
  reflink = callPackage ../development/python-modules/reflink { };
  reflink-copy = callPackage ../development/python-modules/reflink-copy { };
  refoss-ha = callPackage ../development/python-modules/refoss-ha { };
  regenmaschine = callPackage ../development/python-modules/regenmaschine { };