Files
nixpkgs/pkgs/development/python-modules/affinegaps/default.nix

50 lines
958 B
Nix

{
biopython,
buildPythonPackage,
colorama,
fetchFromGitHub,
hatchling,
lib,
numpy,
pytest-repeat,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "affinegaps";
version = "0.2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "unum-science";
repo = "AffineGaps";
tag = "v${finalAttrs.version}";
hash = "sha256-Nbm79gKuCMqcCWQCjk8O2bbnzXBvby6FB/YhzqeDIJw=";
};
build-system = [ hatchling ];
dependencies = [
colorama
numpy
];
pythonImportsCheck = [ "affinegaps" ];
nativeCheckInputs = [
biopython
pytest-repeat
pytestCheckHook
];
enabledTestPaths = [ "test.py" ];
meta = {
changelog = "https://github.com/unum-science/AffineGaps/releases/tag/${finalAttrs.src.tag}";
homepage = "https://github.com/unum-science/AffineGaps";
license = lib.licenses.asl20;
mainProgram = "affinegaps";
maintainers = [ lib.maintainers.dotlambda ];
};
})