tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python311Packages.pysmartdl: refactor
natsukium
2 years ago
ba4578ec
1a44a1cc
+34
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pysmartdl
default.nix
+34
-6
pkgs/development/python-modules/pysmartdl/default.nix
reviewed
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
, fetchFromGitHub
4
4
+
, setuptools
5
5
+
, pytestCheckHook
4
6
}:
5
7
6
8
buildPythonPackage rec {
7
9
pname = "pysmartdl";
8
10
version = "1.3.4";
9
9
-
src = fetchFromGitHub ({
11
11
+
pyproject = true;
12
12
+
13
13
+
src = fetchFromGitHub {
10
14
owner = "iTaybb";
11
11
-
repo = pname;
12
12
-
rev = "b93df794e1e60017c42d9520ac097b6fd38c2e8b";
15
15
+
repo = "pySmartDL";
16
16
+
rev = "refs/tags/v${version}";
13
17
hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM=";
14
14
-
});
18
18
+
};
15
19
16
16
-
doCheck = false;
20
20
+
nativeBuildInputs = [
21
21
+
setuptools
22
22
+
];
23
23
+
24
24
+
nativeCheckInputs = [
25
25
+
pytestCheckHook
26
26
+
];
27
27
+
28
28
+
disabledTests = [
29
29
+
# touch the network
30
30
+
"test_basic_auth"
31
31
+
"test_custom_headers"
32
32
+
"test_download"
33
33
+
"test_hash"
34
34
+
"test_mirrors"
35
35
+
"test_pause_unpause"
36
36
+
"test_speed_limiting"
37
37
+
"test_stop"
38
38
+
"test_timeout"
39
39
+
"test_unicode"
40
40
+
];
41
41
+
42
42
+
pythonImportsCheck = [
43
43
+
"pySmartDL"
44
44
+
];
17
45
18
46
meta = with lib; {
19
47
homepage = "https://github.com/iTaybb/pySmartDL";
20
48
description = "A Smart Download Manager for Python";
49
49
+
changelog = "https://github.com/iTaybb/pySmartDL/blob/${src.rev}/ChangeLog.txt";
21
50
license = licenses.unlicense;
22
22
-
platforms = platforms.linux;
23
51
maintainers = with maintainers; [ ];
24
52
};
25
53
}