Files
nixpkgs/pkgs/development/python-modules/cwl-upgrader/default.nix
T
2025-12-21 21:34:32 +01:00

55 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
mypy-extensions,
pytest-xdist,
pytestCheckHook,
ruamel-yaml,
schema-salad,
setuptools,
}:
buildPythonPackage rec {
pname = "cwl-upgrader";
version = "1.2.14";
pyproject = true;
src = fetchFromGitHub {
owner = "common-workflow-language";
repo = "cwl-upgrader";
tag = "v${version}";
hash = "sha256-bkICax7HIEo8ypttXgDmCl82JfVkV2T11fLRK1/0hz8=";
};
postPatch = ''
# Version detection doesn't work for schema_salad
substituteInPlace pyproject.toml \
--replace '"schema_salad",' ""
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
mypy-extensions
ruamel-yaml
schema-salad
];
nativeCheckInputs = [
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "cwlupgrader" ];
meta = {
description = "Library to upgrade CWL syntax to a newer version";
homepage = "https://github.com/common-workflow-language/cwl-upgrader";
changelog = "https://github.com/common-workflow-language/cwl-upgrader/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "cwl-upgrader";
};
}