a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
39 lines
727 B
Nix
39 lines
727 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Send2Trash";
|
|
version = "1.8.1b0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hsoft";
|
|
repo = "send2trash";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-kDUEfyMTk8CXSxTEi7E6kl09ohnWHeaoif+EIaIJh9Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Send file to trash natively under macOS, Windows and Linux";
|
|
homepage = "https://github.com/hsoft/send2trash";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|