Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 44 lines 832 B view raw
1{ lib 2, buildPythonApplication 3, fetchFromGitHub 4, pytest-mock 5, pytestCheckHook 6, toml 7, poetry 8, poetry-semver 9, pyyaml 10}: 11 12buildPythonApplication 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}