poetry2conda: init at 0.3.0

This commit is contained in:
Phillip Cloud 2021-09-01 07:51:27 -04:00
parent 960f59ba72
commit b27bd16bd9
No known key found for this signature in database
GPG key ID: D908212070FD785E
3 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, toml
, poetry
, poetry-semver
, pyyaml
}:
buildPythonApplication rec {
pname = "poetry2conda";
version = "0.3.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "dojeda";
repo = pname;
rev = "v${version}";
sha256 = "sha256-UqNoEGgStvqtxhYwExk7wO4SvATaM2kGaFbB5ViJa7U=";
};
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [
poetry-semver
toml
];
checkInputs = [
pytest-mock
pytestCheckHook
pyyaml
];
meta = with lib; {
description = "A script to convert a Python project declared on a pyproject.toml to a conda environment";
homepage = "https://github.com/dojeda/poetry2conda";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}

View file

@ -12939,6 +12939,8 @@ with pkgs;
inherit pkgs lib;
};
poetry2conda = python3Packages.callPackage ../development/python-modules/poetry2conda { };
pipenv = callPackage ../development/tools/pipenv {};
pipewire = callPackage ../development/libraries/pipewire {};

View file

@ -5568,6 +5568,8 @@ in {
poetry-semver = callPackage ../development/python-modules/poetry-semver { };
poetry2conda = callPackage ../development/python-modules/poetry2conda { };
poezio = callPackage ../applications/networking/instant-messengers/poezio { };
polib = callPackage ../development/python-modules/polib { };