Unverified Commit 24744caf authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.autopage: 0.5.2 -> 0.6.0 (#486312)

parents 0f93a07a 3dbf6829
Loading
Loading
Loading
Loading
+21 −9
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  fixtures,
  less,
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "autopage";
  version = "0.5.2";

  version = "0.6.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-gmmW10xaqfS2kWGVVHMSrGOEusOBC4UXBj8pMkgle3I=";
  src = fetchFromGitHub {
    owner = "zaneb";
    repo = "autopage";
    tag = "v${finalAttrs.version}";
    hash = "sha256-oBZoGVvgUhrfcEUvmhIN7Wnsv+SvkC553LAhHGCVIBQ=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  nativeCheckInputs = [
    fixtures
    less
    pytestCheckHook
  ]
  ++ fixtures.optional-dependencies.streams;

  pythonImportsCheck = [ "autopage" ];

  meta = {
    changelog = "https://github.com/zaneb/autopage/releases/tag/${finalAttrs.src.tag}";
    description = "Library to provide automatic paging for console output";
    homepage = "https://github.com/zaneb/autopage";
    license = lib.licenses.asl20;
    teams = [ lib.teams.openstack ];
  };
}
})