mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
39 lines
763 B
Nix
39 lines
763 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
with python3.pkgs; 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 ];
|
|
};
|
|
}
|