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