nixpkgs/pkgs/development/python-modules/pipdate/default.nix

51 lines
899 B
Nix
Raw Normal View History

2019-05-20 15:54:11 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, isPy27
2019-05-20 15:54:11 +01:00
, appdirs
, importlib-metadata
2019-05-20 15:54:11 +01:00
, requests
, pytest
2020-08-18 09:37:33 +01:00
, wheel
2019-05-20 15:54:11 +01:00
}:
buildPythonPackage rec {
pname = "pipdate";
2020-07-31 09:56:43 +01:00
version = "0.5.2";
2020-08-18 09:37:33 +01:00
format = "pyproject";
disabled = isPy27; # abandoned
2019-05-20 15:54:11 +01:00
src = fetchPypi {
inherit pname version;
2020-07-31 09:56:43 +01:00
sha256 = "507065231f2d50b6319d483432cba82aadad78be21b7a2969b5881ed8dee9ab4";
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
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
2019-05-20 15:54:11 +01:00
];
checkInputs = [
pytest
];
checkPhase = ''
HOME=$(mktemp -d) pytest test/test_pipdate.py
'';
# tests require network access
doCheck = false;
meta = with lib; {
description = "pip update helpers";
homepage = "https://github.com/nschloe/pipdate";
2019-05-20 15:54:11 +01:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}