depot/third_party/nixpkgs/pkgs/development/python-modules/snakemake-interface-common/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

46 lines
1.1 KiB
Nix

{
lib,
argparse-dataclass,
buildPythonPackage,
configargparse,
fetchFromGitHub,
poetry-core,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "snakemake-interface-common";
version = "1.17.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "snakemake";
repo = "snakemake-interface-common";
rev = "refs/tags/v${version}";
hash = "sha256-91Sh6JNpCEWPRkrEwoJeycZS1D4lXWA4IJLVcxBYLnI=";
};
build-system = [ poetry-core ];
dependencies = [
argparse-dataclass
configargparse
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "snakemake_interface_common" ];
pytestFlagsArray = [ "tests/tests.py" ];
meta = with lib; {
description = "Common functions and classes for Snakemake and its plugins";
homepage = "https://github.com/snakemake/snakemake-interface-common";
changelog = "https://github.com/snakemake/snakemake-interface-common/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ veprbl ];
};
}