My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/reflink/default.nix

39 lines
853 B

{ buildPythonPackage
, cffi
, fetchPypi
, lib
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "reflink";
version = "0.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ySU1gtskQTv9cDq/wbKkneePMbSQcjnyhumhkpoebjo=";
};
propagatedBuildInputs = [ cffi ];
propagatedNativeBuildInputs = [ cffi ];
checkInputs = [ 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 ];
};
}