mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 17:30:19 +00:00
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
lib,
|
|
setuptools,
|
|
attrs,
|
|
requests,
|
|
pytestCheckHook,
|
|
vcrpy,
|
|
pytest-cov-stub,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "bioutils";
|
|
version = "0.6.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "biocommons";
|
|
repo = "bioutils";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-yrj68Z6F+owzcKvZjdQE+FQLjHHJSSbAkz/XRNbjzos=";
|
|
};
|
|
|
|
# https://github.com/biocommons/bioutils/issues/111
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail '"setuptools_scm[toml] ~= 8.1"' '"setuptools_scm[toml]"'
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
attrs
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
vcrpy
|
|
];
|
|
|
|
disabledTestMarks = [ "network" ];
|
|
|
|
disabledTestPaths = [
|
|
"tests/test_docs.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "bioutils" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/biocommons/bioutils/releases/tag/${finalAttrs.src.tag}";
|
|
description = "Common utilities and lookup tables for bioinformatics";
|
|
homepage = "https://biocommons.org/en/latest/";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ rub-br ];
|
|
};
|
|
})
|