Merge pull request #136372 from cpcloud/poetry2conda
poetry2conda: init at 0.3.0
This commit is contained in:
commit
d9de842f58
4 changed files with 74 additions and 0 deletions
24
pkgs/development/python-modules/poetry-semver/default.nix
Normal file
24
pkgs/development/python-modules/poetry-semver/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "poetry-semver";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-2Am2Eqons5vy0PydMbT0gJsOlyZGxfGc+kbHJbdjiBA=";
|
||||
};
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A semantic versioning library for Python.";
|
||||
homepage = "https://github.com/python-poetry/semver";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cpcloud ];
|
||||
};
|
||||
}
|
44
pkgs/development/python-modules/poetry2conda/default.nix
Normal file
44
pkgs/development/python-modules/poetry2conda/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -12943,6 +12943,8 @@ with pkgs;
|
|||
inherit pkgs lib;
|
||||
};
|
||||
|
||||
poetry2conda = python3Packages.callPackage ../development/python-modules/poetry2conda { };
|
||||
|
||||
pipenv = callPackage ../development/tools/pipenv {};
|
||||
|
||||
pipewire = callPackage ../development/libraries/pipewire {};
|
||||
|
|
|
@ -5566,6 +5566,10 @@ in {
|
|||
|
||||
poetry-core = callPackage ../development/python-modules/poetry-core { };
|
||||
|
||||
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 { };
|
||||
|
|
Loading…
Reference in a new issue