blob: b446eebe65e3e1959b03ab0be5556648a95c48a8 (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{
lib,
aiohttp,
aresponses,
attrs,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pytz,
}:
buildPythonPackage rec {
pname = "seventeentrack";
version = "2022.04.6";
pyproject = true;
src = fetchFromGitHub {
owner = "McSwindler";
repo = "seventeentrack";
rev = version;
hash = "sha256-vMdRXcd0es/LjgsVyWItSLFzlSTEa3oaA6lr/NL4i8U=";
};
patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/McSwindler/seventeentrack/pull/4
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/McSwindler/seventeentrack/commit/9a21e22f796a17628a9628f54e19d19d002b4d0a.patch";
hash = "sha256-UvxUpiSkDbP8Jum5XbrWHBnH1HLBYEKUKw6GTV+Kvys=";
})
];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
attrs
pytz
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [
# Ignore the examples directory as the files are prefixed with test_
"examples/"
];
pythonImportsCheck = [ "seventeentrack" ];
meta = {
description = "Python library to track package info from 17track.com";
homepage = "https://github.com/McSwindler/seventeentrack";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|