mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
02dab4ab5c
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
41 lines
882 B
Nix
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 ];
|
|
};
|
|
}
|