1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8
9 # dependencies
10 pyyaml,
11}:
12
13buildPythonPackage rec {
14 pname = "conda-inject";
15 version = "1.3.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "koesterlab";
20 repo = "conda-inject";
21 tag = "v${version}";
22 hash = "sha256-M4+bz7ZuHlcF8tF5kSCUjjkIHG75eCCW1IJxcwxNL6o=";
23 };
24
25 build-system = [
26 poetry-core
27 ];
28
29 dependencies = [
30 pyyaml
31 ];
32
33 pythonImportsCheck = [
34 "conda_inject"
35 ];
36
37 # no tests
38 doCheck = false;
39
40 meta = {
41 description = "Helper functions for injecting a conda environment into the current python environment";
42 homepage = "https://github.com/koesterlab/conda-inject";
43 changelog = "https://github.com/koesterlab/conda-inject/blob/${src.rev}/CHANGELOG.md";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ GaetanLepage ];
46 };
47}