depot/pkgs/tools/package-management/poetry/plugins/poetry-plugin-export.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
873 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:
buildPythonPackage rec {
pname = "poetry-plugin-export";
version = "1.8.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ZXhj9FwCCNFMzyoAtQTD8bddOvVM4KzNtd+3sBn9i+w=";
};
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 = [ ];
};
}