depot/third_party/nixpkgs/pkgs/development/python-modules/reflink/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
889 B
Nix

{
buildPythonPackage,
cffi,
fetchPypi,
lib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "reflink";
version = "0.2.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-iCN17nMZJ1rl9qahKHQGNl2sHpZDuRrRDlGH0/hCU70=";
};
propagatedBuildInputs = [ cffi ];
propagatedNativeBuildInputs = [ cffi ];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
# 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 ];
};
}