python312Packages.snakemake-interface-common: refactor
- enable tests
This commit is contained in:
parent
a4bb614ff7
commit
8127657f4a
|
@ -1,37 +1,52 @@
|
|||
{ lib
|
||||
, argparse-dataclass
|
||||
, buildPythonPackage
|
||||
, configargparse
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, argparse-dataclass
|
||||
, configargparse
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "snakemake-interface-common";
|
||||
version = "1.17.2";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snakemake";
|
||||
repo = pname;
|
||||
repo = "snakemake-interface-common";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-N8mSS+gABAgXm01BcsMk89a3HsIsc3RHxCAi3GlxtRg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
argparse-dataclass
|
||||
configargparse
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "snakemake_interface_common" ];
|
||||
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 ];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue