Files
nixpkgs/pkgs/development/python-modules/cwlformat/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

53 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytestCheckHook,
ruamel-yaml,
setuptools,
}:
buildPythonPackage rec {
pname = "cwlformat";
version = "2022.02.18";
pyproject = true;
src = fetchFromGitHub {
owner = "rabix";
repo = "cwl-format";
tag = version;
hash = "sha256-FI8hUgb/KglTkubZ+StzptoSsYal71ITyyFNg7j48yk=";
};
patches = [
# https://github.com/rabix/cwl-format/pull/21
(fetchpatch {
name = "fix-for-ruamel-yaml-0.17.23.patch";
url = "https://github.com/rabix/cwl-format/commit/9d54330c73c454d2ccacd55e2d51a4145f282041.patch";
hash = "sha256-TZGK7T2gzxMvreCLtl3nkuPrqL2KzgrO3yCNmd5lY3g=";
})
];
build-system = [ setuptools ];
dependencies = [ ruamel-yaml ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cwlformat" ];
disabledTests = [
# Test compares output
"test_formatting_battery"
];
meta = {
description = "Code formatter for CWL";
homepage = "https://github.com/rabix/cwl-format";
changelog = "https://github.com/rabix/cwl-format/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}