2019-05-20 15:54:11 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-07-04 16:03:58 +01:00
|
|
|
, pythonOlder
|
2019-05-20 15:54:11 +01:00
|
|
|
, appdirs
|
2020-07-04 16:03:58 +01:00
|
|
|
, importlib-metadata
|
2019-05-20 15:54:11 +01:00
|
|
|
, requests
|
2021-07-31 21:45:32 +01:00
|
|
|
, rich
|
|
|
|
, setuptools
|
2020-08-18 09:37:33 +01:00
|
|
|
, wheel
|
2019-05-20 15:54:11 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pipdate";
|
2021-07-31 21:45:32 +01:00
|
|
|
version = "0.5.5";
|
2020-08-18 09:37:33 +01:00
|
|
|
format = "pyproject";
|
2021-07-31 21:45:32 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-05-20 15:54:11 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-31 21:45:32 +01:00
|
|
|
sha256 = "03hr9i691cpg9q2xc1xr4lpd90xs8rba0xjh6qmc1vg7lgcdgbaa";
|
2019-05-20 15:54:11 +01:00
|
|
|
};
|
|
|
|
|
2020-08-18 09:37:33 +01:00
|
|
|
nativeBuildInputs = [ wheel ];
|
|
|
|
|
2019-05-20 15:54:11 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
requests
|
2021-07-31 21:45:32 +01:00
|
|
|
rich
|
|
|
|
setuptools
|
2020-07-04 16:03:58 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2019-05-20 15:54:11 +01:00
|
|
|
];
|
|
|
|
|
2021-07-31 21:45:32 +01:00
|
|
|
# Tests require network access and pythonImportsCheck requires configuration file
|
2019-05-20 15:54:11 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "pip update helpers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nschloe/pipdate";
|
2021-07-31 21:45:32 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-05-20 15:54:11 +01:00
|
|
|
};
|
|
|
|
}
|