diff --git a/pkgs/development/python-modules/reflink/default.nix b/pkgs/development/python-modules/reflink/default.nix new file mode 100644 index 000000000000..e9b8beadd16d --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a53b50146fec..3454c2354edd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6365,6 +6365,8 @@ in { reedsolo = callPackage ../development/python-modules/reedsolo { }; + reflink = callPackage ../development/python-modules/reflink { }; + regex = callPackage ../development/python-modules/regex { }; regional = callPackage ../development/python-modules/regional { };