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 ]
35 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
36
37 # Tests require network access and pythonImportsCheck requires configuration file
38 doCheck = false;
39
40 meta = with lib; {
41 description = "Pip update helpers";
42 mainProgram = "pipdate";
43 homepage = "https://github.com/nschloe/pipdate";
44 license = licenses.gpl3Plus;
45 maintainers = [ ];
46 };
47}