2021-01-02 08:31:34 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, cffi
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, pytestCheckHook
|
2021-07-20 22:07:53 +01:00
|
|
|
, pytest-runner
|
2021-01-02 08:31:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "reflink";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-ySU1gtskQTv9cDq/wbKkneePMbSQcjnyhumhkpoebjo=";
|
|
|
|
};
|
|
|
|
|
2021-07-20 22:07:53 +01:00
|
|
|
propagatedBuildInputs = [ cffi pytest-runner ];
|
2021-01-02 08:31:34 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|