3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pipdate/default.nix

45 lines
864 B
Nix
Raw Normal View History

2019-05-20 15:54:11 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
2019-05-20 15:54:11 +01:00
, appdirs
, importlib-metadata
2019-05-20 15:54:11 +01:00
, requests
, rich
, setuptools
2020-08-18 09:37:33 +01:00
, wheel
2019-05-20 15:54:11 +01:00
}:
buildPythonPackage rec {
pname = "pipdate";
version = "0.5.5";
2020-08-18 09:37:33 +01:00
format = "pyproject";
disabled = pythonOlder "3.6";
2019-05-20 15:54:11 +01:00
src = fetchPypi {
inherit pname version;
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
rich
setuptools
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
2019-05-20 15:54:11 +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";
homepage = "https://github.com/nschloe/pipdate";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ costrouc ];
2019-05-20 15:54:11 +01:00
};
}