nixpkgs/pkgs/development/python-modules/conda-inject/default.nix
2024-10-16 08:34:58 +02:00

48 lines
922 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
pyyaml,
}:
buildPythonPackage rec {
pname = "conda-inject";
version = "1.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "koesterlab";
repo = "conda-inject";
rev = "refs/tags/v${version}";
hash = "sha256-M4+bz7ZuHlcF8tF5kSCUjjkIHG75eCCW1IJxcwxNL6o=";
};
build-system = [
poetry-core
];
dependencies = [
pyyaml
];
pythonImportsCheck = [
"conda_inject"
];
# no tests
doCheck = false;
meta = {
description = "Helper functions for injecting a conda environment into the current python environment";
homepage = "https://github.com/koesterlab/conda-inject";
changelog = "https://github.com/koesterlab/conda-inject/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}