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