mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
python310Packages.cwl-upgrader: init at 1.2.4
This commit is contained in:
parent
1cc6404243
commit
e11e570888
53
pkgs/development/python-modules/cwl-upgrader/default.nix
Normal file
53
pkgs/development/python-modules/cwl-upgrader/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, ruamel-yaml
|
||||
, schema-salad
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cwl-upgrader";
|
||||
version = "1.2.4";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "common-workflow-language";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-3pKnkU8lks3w+N7w2qST9jr4/CS6YzgnBVLTlgq1gf0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "ruamel.yaml >= 0.15, < 0.17.22" "ruamel.yaml" \
|
||||
--replace "setup_requires=PYTEST_RUNNER," ""
|
||||
sed -i "/ruamel.yaml/d" setup.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ruamel-yaml
|
||||
schema-salad
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cwlupgrader"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library to interface with Yolink";
|
||||
homepage = "https://github.com/common-workflow-language/cwl-utils";
|
||||
changelog = "https://github.com/common-workflow-language/cwl-utils/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -2124,6 +2124,8 @@ self: super: with self; {
|
||||
|
||||
cwcwidth = callPackage ../development/python-modules/cwcwidth { };
|
||||
|
||||
cwl-upgrader = callPackage ../development/python-modules/cwl-upgrader { };
|
||||
|
||||
cx_Freeze = callPackage ../development/python-modules/cx_freeze { };
|
||||
|
||||
cx_oracle = callPackage ../development/python-modules/cx_oracle { };
|
||||
|
Loading…
Reference in New Issue
Block a user