nixpkgs/pkgs/development/python-modules/reflink/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

41 lines
882 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 ];
};
}