Merge pull request #136372 from cpcloud/poetry2conda

poetry2conda: init at 0.3.0

authored by Bernardo Meurer and committed by GitHub d9de842f 84bf8623

+74
+24
pkgs/development/python-modules/poetry-semver/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytestCheckHook 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "poetry-semver"; 9 + version = "0.1.0"; 10 + 11 + src = fetchPypi { 12 + inherit pname version; 13 + sha256 = "sha256-2Am2Eqons5vy0PydMbT0gJsOlyZGxfGc+kbHJbdjiBA="; 14 + }; 15 + 16 + checkInputs = [ pytestCheckHook ]; 17 + 18 + meta = with lib; { 19 + description = "A semantic versioning library for Python."; 20 + homepage = "https://github.com/python-poetry/semver"; 21 + license = licenses.mit; 22 + maintainers = with maintainers; [ cpcloud ]; 23 + }; 24 + }
+44
pkgs/development/python-modules/poetry2conda/default.nix
··· 1 + { lib 2 + , buildPythonApplication 3 + , fetchFromGitHub 4 + , pytest-mock 5 + , pytestCheckHook 6 + , toml 7 + , poetry 8 + , poetry-semver 9 + , pyyaml 10 + }: 11 + 12 + buildPythonApplication rec { 13 + pname = "poetry2conda"; 14 + version = "0.3.0"; 15 + 16 + format = "pyproject"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "dojeda"; 20 + repo = pname; 21 + rev = "v${version}"; 22 + sha256 = "sha256-UqNoEGgStvqtxhYwExk7wO4SvATaM2kGaFbB5ViJa7U="; 23 + }; 24 + 25 + nativeBuildInputs = [ poetry ]; 26 + 27 + propagatedBuildInputs = [ 28 + poetry-semver 29 + toml 30 + ]; 31 + 32 + checkInputs = [ 33 + pytest-mock 34 + pytestCheckHook 35 + pyyaml 36 + ]; 37 + 38 + meta = with lib; { 39 + description = "A script to convert a Python project declared on a pyproject.toml to a conda environment"; 40 + homepage = "https://github.com/dojeda/poetry2conda"; 41 + license = licenses.mit; 42 + maintainers = with maintainers; [ cpcloud ]; 43 + }; 44 + }
+2
pkgs/top-level/all-packages.nix
··· 12943 12943 inherit pkgs lib; 12944 12944 }; 12945 12945 12946 + poetry2conda = python3Packages.callPackage ../development/python-modules/poetry2conda { }; 12947 + 12946 12948 pipenv = callPackage ../development/tools/pipenv {}; 12947 12949 12948 12950 pipewire = callPackage ../development/libraries/pipewire {};
+4
pkgs/top-level/python-packages.nix
··· 5566 5566 5567 5567 poetry-core = callPackage ../development/python-modules/poetry-core { }; 5568 5568 5569 + poetry-semver = callPackage ../development/python-modules/poetry-semver { }; 5570 + 5571 + poetry2conda = callPackage ../development/python-modules/poetry2conda { }; 5572 + 5569 5573 poezio = callPackage ../applications/networking/instant-messengers/poezio { }; 5570 5574 5571 5575 polib = callPackage ../development/python-modules/polib { };