Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 746 B view raw
1{ buildPythonPackage 2, cffi 3, fetchPypi 4, lib 5, pytestCheckHook 6, pytestrunner 7}: 8 9buildPythonPackage rec { 10 pname = "reflink"; 11 version = "0.2.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "sha256-ySU1gtskQTv9cDq/wbKkneePMbSQcjnyhumhkpoebjo="; 16 }; 17 18 propagatedBuildInputs = [ cffi pytestrunner ]; 19 20 checkInputs = [ pytestCheckHook ]; 21 22 # FIXME: These do not work, and I have been unable to figure out why. 23 doCheck = false; 24 25 pythonImportsCheck = [ "reflink" ]; 26 27 meta = with lib; { 28 description = "Python reflink wraps around platform specific reflink implementations"; 29 homepage = "https://gitlab.com/rubdos/pyreflink"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ lovesegfault ]; 32 }; 33}