about summary refs log tree commit diff
path: root/pkgs/development/python-modules/send2trash/default.nix
blob: 7ea0705f81544d05af651eb9ab20cacb101576da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, configparser
}:

buildPythonPackage rec {
  pname = "Send2Trash";
  version = "1.4.2";

  src = fetchFromGitHub {
    owner = "hsoft";
    repo = "send2trash";
    rev = version;
    sha256 = "1w502i5h8xaqf03g6h95h4vs1wqfv6kg925dn63phrwmg1hfz2xx";
  };

  doCheck = !stdenv.isDarwin;
  checkPhase = "HOME=. py.test";
  checkInputs = [ pytest configparser ];

  meta = with lib; {
    description = "Send file to trash natively under macOS, Windows and Linux";
    homepage = https://github.com/hsoft/send2trash;
    license = licenses.bsd3;
  };
}