diff --git a/pkgs/development/python-modules/snakemake-interface-common/default.nix b/pkgs/development/python-modules/snakemake-interface-common/default.nix index 15f5d663579f..2bc7a0672dba 100644 --- a/pkgs/development/python-modules/snakemake-interface-common/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-common/default.nix @@ -1,37 +1,45 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, argparse-dataclass -, configargparse +{ + lib, + argparse-dataclass, + buildPythonPackage, + configargparse, + fetchFromGitHub, + poetry-core, + 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 = [ - poetry-core - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + 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 ]; };