evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / cwl-upgrader / default.nix
blob8e5e2d1c3d24d9fa1763c0b7546f3f4852c77b7e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   mypy-extensions,
6   pytest-xdist,
7   pytestCheckHook,
8   pythonOlder,
9   ruamel-yaml,
10   schema-salad,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "cwl-upgrader";
16   version = "1.2.11";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "common-workflow-language";
23     repo = "cwl-upgrader";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-P8607Io/KIJqAnrValM+rRK59tQITcC/jyGwkge8qN0=";
26   };
28   postPatch = ''
29     # Version detection doesn't work for schema_salad
30     substituteInPlace pyproject.toml \
31       --replace '"schema_salad",' ""
32   '';
34   nativeBuildInputs = [ setuptools ];
36   propagatedBuildInputs = [
37     mypy-extensions
38     ruamel-yaml
39     schema-salad
40   ];
42   nativeCheckInputs = [
43     pytest-xdist
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [ "cwlupgrader" ];
49   meta = with lib; {
50     description = "Library to upgrade CWL syntax to a newer version";
51     mainProgram = "cwl-upgrader";
52     homepage = "https://github.com/common-workflow-language/cwl-upgrader";
53     changelog = "https://github.com/common-workflow-language/cwl-upgrader/releases/tag/v${version}";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ fab ];
56   };