python3Packages.widgetsnbextension: add setuptools to nativeBuildInputs
and migrate checkPhase to pytestCheckHook
This commit is contained in:
parent
88373b3900
commit
872a77c58e
@ -1,7 +1,8 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytest
|
, setuptools
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -12,13 +13,23 @@ buildPythonPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hsoft";
|
owner = "hsoft";
|
||||||
repo = "send2trash";
|
repo = "send2trash";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-kDUEfyMTk8CXSxTEi7E6kl09ohnWHeaoif+EIaIJh9Q=";
|
hash = "sha256-kDUEfyMTk8CXSxTEi7E6kl09ohnWHeaoif+EIaIJh9Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
checkPhase = "HOME=$TMPDIR pytest";
|
|
||||||
checkInputs = [ pytest ];
|
preCheck = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Send file to trash natively under macOS, Windows and Linux";
|
description = "Send file to trash natively under macOS, Windows and Linux";
|
||||||
|
Loading…
Reference in New Issue
Block a user