diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-15 12:37:29 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-15 14:57:12 +0100 |
commit | 768366b645d8e69abe69c185d5b0cb59a90a54e6 (patch) | |
tree | ee76bbfd1c3efa899a4bf089cf9ba427b6ccbafa /pkgs/development/python-modules/cwlformat | |
parent | e11e570888402846cc24c1053488f267f274198b (diff) |
python310Packages.cwlformat: init at 2022.02.18
Diffstat (limited to 'pkgs/development/python-modules/cwlformat')
-rw-r--r-- | pkgs/development/python-modules/cwlformat/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cwlformat/default.nix b/pkgs/development/python-modules/cwlformat/default.nix new file mode 100644 index 0000000000000..201155eac5955 --- /dev/null +++ b/pkgs/development/python-modules/cwlformat/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, ruamel-yaml +}: + +buildPythonPackage rec { + pname = "cwlformat"; + version = "2022.02.18"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "rabix"; + repo = "cwl-format"; + rev = "refs/tags/${version}"; + hash = "sha256-FI8hUgb/KglTkubZ+StzptoSsYal71ITyyFNg7j48yk="; + }; + + propagatedBuildInputs = [ + ruamel-yaml + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "cwlformat" + ]; + + meta = with lib; { + description = "Code formatter for CWL"; + homepage = "https://github.com/rabix/cwl-format"; + changelog = "https://github.com/rabix/cwl-format/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} |