1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, ruamel-yaml
7}:
8
9buildPythonPackage rec {
10 pname = "cwlformat";
11 version = "2022.02.18";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "rabix";
18 repo = "cwl-format";
19 rev = "refs/tags/${version}";
20 hash = "sha256-FI8hUgb/KglTkubZ+StzptoSsYal71ITyyFNg7j48yk=";
21 };
22
23 propagatedBuildInputs = [
24 ruamel-yaml
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "cwlformat"
33 ];
34
35 meta = with lib; {
36 description = "Code formatter for CWL";
37 homepage = "https://github.com/rabix/cwl-format";
38 changelog = "https://github.com/rabix/cwl-format/releases/tag/${version}";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ fab ];
41 };
42}