python3Packages.pipdate: 0.5.2 -> 0.5.5
This commit is contained in:
parent
ca5d520a0f
commit
a895c83b03
|
@ -2,23 +2,23 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, isPy27
|
|
||||||
, appdirs
|
, appdirs
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, requests
|
, requests
|
||||||
, pytest
|
, rich
|
||||||
|
, setuptools
|
||||||
, wheel
|
, wheel
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pipdate";
|
pname = "pipdate";
|
||||||
version = "0.5.2";
|
version = "0.5.5";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
disabled = isPy27; # abandoned
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "507065231f2d50b6319d483432cba82aadad78be21b7a2969b5881ed8dee9ab4";
|
sha256 = "03hr9i691cpg9q2xc1xr4lpd90xs8rba0xjh6qmc1vg7lgcdgbaa";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ wheel ];
|
nativeBuildInputs = [ wheel ];
|
||||||
|
@ -26,25 +26,19 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
appdirs
|
appdirs
|
||||||
requests
|
requests
|
||||||
|
rich
|
||||||
|
setuptools
|
||||||
] ++ lib.optionals (pythonOlder "3.8") [
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
importlib-metadata
|
importlib-metadata
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
# Tests require network access and pythonImportsCheck requires configuration file
|
||||||
pytest
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
HOME=$(mktemp -d) pytest test/test_pipdate.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
# tests require network access
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "pip update helpers";
|
description = "pip update helpers";
|
||||||
homepage = "https://github.com/nschloe/pipdate";
|
homepage = "https://github.com/nschloe/pipdate";
|
||||||
license = licenses.mit;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue