2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-04-27 09:35:20 +00:00
|
|
|
, appdirs
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-07-18 16:06:22 +00:00
|
|
|
, importlib-metadata
|
2022-04-27 09:35:20 +00:00
|
|
|
, packaging
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2021-08-05 21:33:18 +00:00
|
|
|
, rich
|
|
|
|
, setuptools
|
2020-09-25 04:45:31 +00:00
|
|
|
, wheel
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pipdate";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.5.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
format = "pyproject";
|
2021-08-05 21:33:18 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-G2t+wsVGj7cDbsnWss7XqKU421WqygPzAZkhbTu9Jks=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wheel
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
2022-04-27 09:35:20 +00:00
|
|
|
packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
2021-08-05 21:33:18 +00:00
|
|
|
rich
|
|
|
|
setuptools
|
2020-07-18 16:06:22 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
# Tests require network access and pythonImportsCheck requires configuration file
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "pip update helpers";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pipdate";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/nschloe/pipdate";
|
2021-08-05 21:33:18 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|