Diff: https://github.com/common-workflow-language/cwl-upgrader/compare/refs/tags/v1.2.7...v1.2.8 Changelog: https://github.com/common-workflow-language/cwl-utils/releases/tag/v1.2.8
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mypy-extensions
|
|
, pytest-xdist
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, ruamel-yaml
|
|
, schema-salad
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cwl-upgrader";
|
|
version = "1.2.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "common-workflow-language";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DwXwzhsv92t6PU4emmG7xlIU7uj3rcHh4+o9NqBMA+A=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "ruamel.yaml >= 0.15, < 0.17.22" "ruamel.yaml" \
|
|
--replace "setup_requires=PYTEST_RUNNER," ""
|
|
sed -i "/ruamel.yaml/d" setup.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
mypy-extensions
|
|
ruamel-yaml
|
|
schema-salad
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cwlupgrader"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to interface with Yolink";
|
|
homepage = "https://github.com/common-workflow-language/cwl-utils";
|
|
changelog = "https://github.com/common-workflow-language/cwl-utils/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|