depot/third_party/nixpkgs/pkgs/development/python-modules/pipenv-poetry-migrate/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

47 lines
940 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, poetry
, typer
, setuptools
}:
buildPythonPackage rec {
version = "0.2.1";
pname = "pipenv-poetry-migrate";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "yhino";
repo = "pipenv-poetry-migrate";
rev = "refs/tags/v${version}";
hash = "sha256-aP8bzWFUzAZrEsz8pYL2y5c7GaUjWG5GA+cc4/tGPZk=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
poetry
typer
];
postPatch = ''
substituteInPlace pyproject.toml --replace 'typer = "^0.4.0"' 'typer = ">=0.4"'
'';
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "This is simple migration script, migrate pipenv to poetry";
homepage = "https://github.com/yhino/pipenv-poetry-migrate";
license = licenses.asl20;
maintainers = with maintainers; [ gador ];
};
}