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

39 lines
891 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:
buildPythonPackage rec {
pname = "poetry-plugin-export";
version = "1.7.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-HXzlfiZYDkrQRFXF1up52KrwGhrIctd3CtjQTNz8xH4=";
};
postPatch = ''
sed -i '/poetry =/d' pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
# infinite recursion with poetry
doCheck = false;
pythonImportsCheck = [];
meta = with lib; {
changelog = "https://github.com/python-poetry/poetry-plugin-export/blob/${src.rev}/CHANGELOG.md";
description = "Poetry plugin to export the dependencies to various formats";
license = licenses.mit;
homepage = "https://github.com/python-poetry/poetry-plugin-export";
maintainers = with maintainers; [ ];
};
}