depot/third_party/nixpkgs/pkgs/development/python-modules/cwlformat/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

42 lines
833 B
Nix

{ 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
];
nativeCheckInputs = [
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 ];
};
}