tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.send2trash: 1.3.0 -> 1.4.2
Robin Gloster
8 years ago
ea0bfbe4
1d303895
+28
-17
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
send2trash
default.nix
top-level
python-packages.nix
+27
pkgs/development/python-modules/send2trash/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pytest
5
5
+
, configparser
6
6
+
}:
7
7
+
8
8
+
buildPythonPackage rec {
9
9
+
pname = "Send2Trash";
10
10
+
version = "1.4.2";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "hsoft";
14
14
+
repo = "send2trash";
15
15
+
rev = version;
16
16
+
sha256 = "1w502i5h8xaqf03g6h95h4vs1wqfv6kg925dn63phrwmg1hfz2xx";
17
17
+
};
18
18
+
19
19
+
checkPhase = "HOME=. py.test";
20
20
+
checkInputs = [ pytest configparser ];
21
21
+
22
22
+
meta = with lib; {
23
23
+
description = "Send file to trash natively under macOS, Windows and Linux";
24
24
+
homepage = https://github.com/hsoft/send2trash;
25
25
+
license = licenses.bsd3;
26
26
+
};
27
27
+
}
+1
-17
pkgs/top-level/python-packages.nix
···
21877
21877
};
21878
21878
};
21879
21879
21880
21880
-
send2trash = buildPythonPackage (rec {
21881
21881
-
name = "Send2Trash-1.3.0";
21882
21882
-
21883
21883
-
src = pkgs.fetchurl {
21884
21884
-
url = "mirror://pypi/S/Send2Trash/${name}.tar.gz";
21885
21885
-
sha256 = "1zjq5ki02l0vl4f1xymsnqyxipx6q81a435p46db07l3mqg4dx1k";
21886
21886
-
};
21887
21887
-
21888
21888
-
# no tests
21889
21889
-
doCheck = false;
21890
21890
-
21891
21891
-
meta = {
21892
21892
-
description = "Send file to trash natively under macOS, Windows and Linux";
21893
21893
-
homepage = https://github.com/hsoft/send2trash;
21894
21894
-
license = licenses.bsd3;
21895
21895
-
};
21896
21896
-
});
21880
21880
+
send2trash = callPackage ../development/python-modules/send2trash { };
21897
21881
21898
21882
sigtools = buildPythonPackage rec {
21899
21883
name = "sigtools-${version}";