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