Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / seventeentrack / default.nix
blob351392aec46a249e62f4b729b6b6ee8b81302a6d
1 { lib
2 , aiohttp
3 , aresponses
4 , attrs
5 , buildPythonPackage
6 , fetchFromGitHub
7 , fetchpatch
8 , poetry-core
9 , pytest-asyncio
10 , pytestCheckHook
11 , pythonOlder
12 , pytz
15 buildPythonPackage rec {
16   pname = "seventeentrack";
17   version = "2022.04.6";
18   format = "pyproject";
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "McSwindler";
24     repo = pname;
25     rev = version;
26     hash = "sha256-vMdRXcd0es/LjgsVyWItSLFzlSTEa3oaA6lr/NL4i8U=";
27   };
29   patches = [
30     # This patch removes references to setuptools and wheel that are no longer
31     # necessary and changes poetry to poetry-core, so that we don't need to add
32     # unnecessary nativeBuildInputs.
33     #
34     #   https://github.com/McSwindler/seventeentrack/pull/4
35     #
36     (fetchpatch {
37       name = "clean-up-build-dependencies.patch";
38       url = "https://github.com/McSwindler/seventeentrack/commit/9a21e22f796a17628a9628f54e19d19d002b4d0a.patch";
39       hash = "sha256-UvxUpiSkDbP8Jum5XbrWHBnH1HLBYEKUKw6GTV+Kvys=";
40     })
41   ];
43   nativeBuildInputs = [
44     poetry-core
45   ];
47   propagatedBuildInputs = [
48     aiohttp
49     attrs
50     pytz
51   ];
53   __darwinAllowLocalNetworking = true;
55   nativeCheckInputs = [
56     aresponses
57     pytest-asyncio
58     pytestCheckHook
59   ];
61   disabledTestPaths = [
62     # Ignore the examples directory as the files are prefixed with test_
63     "examples/"
64   ];
66   pythonImportsCheck = [
67     "seventeentrack"
68   ];
70   meta = with lib; {
71     description = "Python library to track package info from 17track.com";
72     homepage = "https://github.com/McSwindler/seventeentrack";
73     license = with licenses; [ mit ];
74     maintainers = with maintainers; [ fab ];
75   };