depot/third_party/nixpkgs/pkgs/development/python-modules/poetry-plugin-export/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

37 lines
794 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
}:
buildPythonPackage rec {
pname = "poetry-plugin-export";
version = "1.1.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-+BDBQwYaiddq3OQDHKmLap3ehWJe+Gh5D3TwuNXycjg=";
};
postPatch = ''
sed -i '/poetry =/d' pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
# infinite recursion with poetry
doCheck = false;
pythonImportsCheck = [];
meta = with lib; {
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; [ hexa ];
};
}