nixpkgs/pkgs/tools/package-management/poetry/plugins/poetry-plugin-up.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
877 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildPythonPackage
, poetry-core
, pytestCheckHook
, pytest-mock
, poetry
}:
buildPythonPackage rec {
pname = "poetry-plugin-up";
2023-09-06 08:26:17 +00:00
version = "0.4.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "MousaZeidBaker";
repo = pname;
rev = "refs/tags/${version}";
2023-09-06 08:26:17 +00:00
hash = "sha256-ENw+6DdQkRLnAlIuIEdZzIsFP7ILqA9WatlVZYNJSxw=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
poetry
];
preCheck = ''
export HOME=$TMPDIR
'';
meta = with lib; {
description = "Poetry plugin to simplify package updates";
homepage = "https://github.com/MousaZeidBaker/poetry-plugin-up";
changelog = "https://github.com/MousaZeidBaker/poetry-plugin-up/releases/tag/${version}";
license = licenses.mit;
maintainers = [ maintainers.k900 ];
};
}