1{
2 lib,
3 appdirs,
4 buildPythonPackage,
5 fetchPypi,
6 importlib-metadata,
7 packaging,
8 pythonOlder,
9 requests,
10 rich,
11 setuptools,
12 wheel,
13}:
14
15buildPythonPackage rec {
16 pname = "pipdate";
17 version = "0.5.6";
18 format = "pyproject";
19 disabled = pythonOlder "3.6";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-G2t+wsVGj7cDbsnWss7XqKU421WqygPzAZkhbTu9Jks=";
24 };
25
26 nativeBuildInputs = [ wheel ];
27
28 propagatedBuildInputs = [
29 appdirs
30 packaging
31 requests
32 rich
33 setuptools
34 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
35
36 # Tests require network access and pythonImportsCheck requires configuration file
37 doCheck = false;
38
39 meta = with lib; {
40 description = "pip update helpers";
41 mainProgram = "pipdate";
42 homepage = "https://github.com/nschloe/pipdate";
43 license = licenses.gpl3Plus;
44 maintainers = [ ];
45 };
46}