summary refs log tree commit diff
path: root/pkgs/development/python-modules/poetry2conda/default.nix
blob: 7f5268a23dc469ed5a2bb0d710988c244575ff30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 ];
  };
}