1{ buildPythonPackage 2, cffi 3, fetchPypi 4, lib 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "reflink"; 10 version = "0.2.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-iCN17nMZJ1rl9qahKHQGNl2sHpZDuRrRDlGH0/hCU70="; 15 }; 16 17 propagatedBuildInputs = [ cffi ]; 18 19 propagatedNativeBuildInputs = [ cffi ]; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 postPatch = '' 24 substituteInPlace setup.py \ 25 --replace "pytest-runner" "" 26 ''; 27 28 # FIXME: These do not work, and I have been unable to figure out why. 29 doCheck = false; 30 31 pythonImportsCheck = [ "reflink" ]; 32 33 meta = with lib; { 34 description = "Python reflink wraps around platform specific reflink implementations"; 35 homepage = "https://gitlab.com/rubdos/pyreflink"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ lovesegfault ]; 38 }; 39}