24fdeddc0a
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
behave,
|
|
ruamel-yaml,
|
|
schema,
|
|
pytestCheckHook,
|
|
pytest-mock,
|
|
}:
|
|
|
|
let
|
|
version = "1.6.7";
|
|
in
|
|
buildPythonPackage {
|
|
pname = "sismic";
|
|
inherit version;
|
|
pyproject = true;
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AlexandreDecan";
|
|
repo = "sismic";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-EP78Wc2f6AKqbGBW8wVP0wogEbTo0ndjlRRd+fsUvCo=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "behave" ];
|
|
|
|
dependencies = [
|
|
behave
|
|
ruamel-yaml
|
|
schema
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "sismic" ];
|
|
|
|
pytestFlagsArray = [ "tests/" ];
|
|
|
|
disabledTests = [
|
|
# Time related tests, might lead to flaky tests on slow/busy machines
|
|
"test_clock"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/AlexandreDecan/sismic/releases/tag/${version}";
|
|
description = "Sismic Interactive Statechart Model Interpreter and Checker";
|
|
homepage = "https://github.com/AlexandreDecan/sismic";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
};
|
|
}
|