1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5}:
6
7buildPythonPackage rec {
8 pname = "poetry-plugin-export";
9 version = "1.3.1";
10 format = "pyproject";
11
12 src = fetchFromGitHub {
13 owner = "python-poetry";
14 repo = pname;
15 rev = "refs/tags/${version}";
16 hash = "sha256-zA5YHZ3/iVoNf2AKqkrKVDYJIoJh+FMwuoskWHutG5I=";
17 };
18
19 postPatch = ''
20 sed -i '/poetry =/d' pyproject.toml
21 '';
22
23 nativeBuildInputs = [
24 poetry-core
25 ];
26
27 # infinite recursion with poetry
28 doCheck = false;
29 pythonImportsCheck = [];
30
31 meta = with lib; {
32 changelog = "https://github.com/python-poetry/poetry-plugin-export/blob/${src.rev}/CHANGELOG.md";
33 description = "Poetry plugin to export the dependencies to various formats";
34 license = licenses.mit;
35 homepage = "https://github.com/python-poetry/poetry-plugin-export";
36 maintainers = with maintainers; [ hexa ];
37 };
38}